diff options
Diffstat (limited to 'resolv/inet_ntop.c')
-rw-r--r-- | resolv/inet_ntop.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/resolv/inet_ntop.c b/resolv/inet_ntop.c index 2f076d4..a95f684 100644 --- a/resolv/inet_ntop.c +++ b/resolv/inet_ntop.c @@ -40,9 +40,9 @@ static char rcsid[] = "$Id$"; * sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX. */ -static const char *inet_ntop4 __P((const u_char *src, char *dst, size_t size)) +static const char *inet_ntop4 __P((const u_char *src, char *dst, socklen_t size)) internal_function; -static const char *inet_ntop6 __P((const u_char *src, char *dst, size_t size)) +static const char *inet_ntop6 __P((const u_char *src, char *dst, socklen_t size)) internal_function; /* char * @@ -58,7 +58,7 @@ inet_ntop(af, src, dst, size) int af; const void *src; char *dst; - size_t size; + socklen_t size; { switch (af) { case AF_INET: @@ -88,7 +88,7 @@ internal_function inet_ntop4(src, dst, size) const u_char *src; char *dst; - size_t size; + socklen_t size; { static const char fmt[] = "%u.%u.%u.%u"; char tmp[sizeof "255.255.255.255"]; @@ -111,7 +111,7 @@ internal_function inet_ntop6(src, dst, size) const u_char *src; char *dst; - size_t size; + socklen_t size; { /* * Note that int32_t and int16_t need only be "at least" large enough @@ -189,7 +189,7 @@ inet_ntop6(src, dst, size) /* * Check for overflow, copy, and we're done. */ - if ((size_t)(tp - tmp) > size) { + if ((socklen_t)(tp - tmp) > size) { __set_errno (ENOSPC); return (NULL); } |