summaryrefslogtreecommitdiff
path: root/inet_ntop.c
diff options
context:
space:
mode:
authorDominick Meglio <dcm5151@esu.edu>2005-05-15 04:38:53 +0000
committerDominick Meglio <dcm5151@esu.edu>2005-05-15 04:38:53 +0000
commit8260cc50de71d9c00d59f17f7df9cbdba76580e9 (patch)
tree0a0c8119284b40d87f465078c3cbb28c13eaa9be /inet_ntop.c
parentcac87c7fc7d7de5a0fddc4d2bbf5204415c286b8 (diff)
downloadc-ares-8260cc50de71d9c00d59f17f7df9cbdba76580e9.tar.gz
c-ares-8260cc50de71d9c00d59f17f7df9cbdba76580e9.tar.bz2
c-ares-8260cc50de71d9c00d59f17f7df9cbdba76580e9.zip
Forgot to ares_-ize inet_ntop
Diffstat (limited to 'inet_ntop.c')
-rw-r--r--inet_ntop.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/inet_ntop.c b/inet_ntop.c
index ff44f82..cc23a44 100644
--- a/inet_ntop.c
+++ b/inet_ntop.c
@@ -70,16 +70,14 @@ static const char *inet_ntop6(const unsigned char *src, char *dst, size_t size);
* Paul Vixie, 1996.
*/
const char *
-inet_ntop(int af, const void *src, char *dst, size_t size)
+ares_inet_ntop(int af, const void *src, char *dst, size_t size)
{
switch (af) {
case AF_INET:
return (inet_ntop4(src, dst, size));
-#ifdef INET6
case AF_INET6:
return (inet_ntop6(src, dst, size));
-#endif
default:
errno = EAFNOSUPPORT;
return (NULL);
@@ -112,7 +110,6 @@ inet_ntop4(const unsigned char *src, char *dst, size_t size)
return (dst);
}
-#ifdef INET6
/* const char *
* inet_ntop6(src, dst, size)
* convert IPv6 binary address into presentation (printable) format
@@ -205,6 +202,5 @@ inet_ntop6(const unsigned char *src, char *dst, size_t size)
strcpy(dst, tmp);
return (dst);
}
-#endif
#endif