summaryrefslogtreecommitdiff
path: root/nuttx/lib/net/lib_inetpton.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-07 22:00:19 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-07 22:00:19 +0000
commit9ff075d9f32863b462dd5da68574bf253a2615f5 (patch)
treef67fe6501b540bb78cce93e25a1230e69a134adc /nuttx/lib/net/lib_inetpton.c
parente34b62094f3655377d30929d82189f6f15c801f2 (diff)
downloadpx4-nuttx-9ff075d9f32863b462dd5da68574bf253a2615f5.tar.gz
px4-nuttx-9ff075d9f32863b462dd5da68574bf253a2615f5.tar.bz2
px4-nuttx-9ff075d9f32863b462dd5da68574bf253a2615f5.zip
First round of compile fixes for IPv6
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4813 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/net/lib_inetpton.c')
-rw-r--r--nuttx/lib/net/lib_inetpton.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/lib/net/lib_inetpton.c b/nuttx/lib/net/lib_inetpton.c
index b4b97f2ae..5371cd3f2 100644
--- a/nuttx/lib/net/lib_inetpton.c
+++ b/nuttx/lib/net/lib_inetpton.c
@@ -273,14 +273,14 @@ int inet_pton(int af, FAR const char *src, FAR void *dst)
if (!rtime)
{
- ip[(nsep << 1) + 0] = (uint8_t)(value >> 8)) & 0xff;
- ip[(nsep << 1) + 1] = (uint8_t)(value >> 0)) & 0xff;
+ ip[(nsep << 1) + 0] = (uint8_t)((value >> 8) & 0xff);
+ ip[(nsep << 1) + 1] = (uint8_t)((value >> 0) & 0xff);
nsep++;
}
else
{
- rip[(nrsep << 1) + 0] = (uint8_t)(value >> 8)) & 0xff;
- rip[(nrsep << 1) + 1] = (uint8_t)(value >> 0)) & 0xff;
+ rip[(nrsep << 1) + 0] = (uint8_t)((value >> 8) & 0xff);
+ rip[(nrsep << 1) + 1] = (uint8_t)((value >> 0) & 0xff);
nrsep++;
}