summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2013-02-19 13:54:28 +0100
committerYang Tse <yangsita@gmail.com>2013-02-19 13:54:28 +0100
commit9ed49f3e17b988c6acb3a3b713307485808fc6fe (patch)
tree3d5dc95e05e3025ae130a49e3965e400646f945f
parentb82874ad6f60a9d5a423f8ad0d104ac35953787a (diff)
downloadc-ares-9ed49f3e17b988c6acb3a3b713307485808fc6fe.tar.gz
c-ares-9ed49f3e17b988c6acb3a3b713307485808fc6fe.tar.bz2
c-ares-9ed49f3e17b988c6acb3a3b713307485808fc6fe.zip
inet_ntop.c: s/socklen_t/ares_socklen_t
-rw-r--r--inet_ntop.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/inet_ntop.c b/inet_ntop.c
index eefc34a..9420f6c 100644
--- a/inet_ntop.c
+++ b/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 */