diff options
author | Yang Tse <yangsita@gmail.com> | 2013-02-19 13:27:33 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2013-02-19 13:27:33 +0100 |
commit | b82874ad6f60a9d5a423f8ad0d104ac35953787a (patch) | |
tree | ddd5f4cc88e26530097c1b4333f5d15bd16ff37d | |
parent | ecf6f65b43d88e08f4c9222b37b531e5c45896ae (diff) | |
download | c-ares-b82874ad6f60a9d5a423f8ad0d104ac35953787a.tar.gz c-ares-b82874ad6f60a9d5a423f8ad0d104ac35953787a.tar.bz2 c-ares-b82874ad6f60a9d5a423f8ad0d104ac35953787a.zip |
inet_ntop.c: s/socklen_t/ares_socklen_t for portability
-rw-r--r-- | inet_ntop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inet_ntop.c b/inet_ntop.c index 77fe4a6..eefc34a 100644 --- a/inet_ntop.c +++ b/inet_ntop.c @@ -59,13 +59,13 @@ static const char *inet_ntop6(const unsigned char *src, char *dst, size_t size); * Paul Vixie, 1996. */ const char * -ares_inet_ntop(int af, const void *src, char *dst, socklen_t size) +ares_inet_ntop(int af, const void *src, char *dst, ares_socklen_t size) { switch (af) { case AF_INET: - return (inet_ntop4(src, dst, size)); + return (inet_ntop4(src, dst, (size_t)size)); case AF_INET6: - return (inet_ntop6(src, dst, size)); + return (inet_ntop6(src, dst, (size_t)size)); default: SET_ERRNO(EAFNOSUPPORT); return (NULL); |