Browse files

inet_ntop.c: s/socklen_t/ares_socklen_t

  • Loading branch information...
1 parent b82874a commit 9ed49f3e17b988c6acb3a3b713307485808fc6fe @yangtse yangtse committed Feb 19, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 inet_ntop.c
View
5 inet_ntop.c
@@ -195,11 +195,14 @@ inet_ntop6(const unsigned char *src, char *dst, size_t size)
strcpy(dst, tmp);
return (dst);
}
+
#else /* HAVE_INET_NTOP */
-const char *ares_inet_ntop(int af, const void *src, char *dst, socklen_t size)
+const char *
+ares_inet_ntop(int af, const void *src, char *dst, ares_socklen_t size)
{
/* just relay this to the underlying function */
return inet_ntop(af, src, dst, size);
}
+
#endif /* HAVE_INET_NTOP */

0 comments on commit 9ed49f3

Please sign in to comment.