summaryrefslogtreecommitdiff
path: root/nuttx/lib/net/lib_inetntop.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_inetntop.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_inetntop.c')
-rw-r--r--nuttx/lib/net/lib_inetntop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/lib/net/lib_inetntop.c b/nuttx/lib/net/lib_inetntop.c
index 3c8eb936a..dc6a2d0d7 100644
--- a/nuttx/lib/net/lib_inetntop.c
+++ b/nuttx/lib/net/lib_inetntop.c
@@ -109,7 +109,7 @@ FAR const char *inet_ntop(int af, FAR const void *src, FAR char *dst, socklen_t
sprintf(dst, "%d.%d.%d.%d", ptr[0], ptr[1], ptr[2], ptr[3]);
return dst;
#else
- FAR const in6_addr *in6_addr;
+ FAR const struct in6_addr *in6_addr;
uint16_t warray[8];
int offset;
int entry;
@@ -131,7 +131,7 @@ FAR const char *inet_ntop(int af, FAR const void *src, FAR char *dst, socklen_t
goto errout;
}
- in6_addr = (FAR const in6_addr *)src;
+ in6_addr = (FAR const struct in6_addr *)src;
entry = -1;
maxentry = -1;
maxcount = 0;