From a15d4cd59db2be25fe6f4b6bdb27dace87ff281d Mon Sep 17 00:00:00 2001 From: David McCullough Date: Tue, 8 May 2001 13:59:30 +0000 Subject: Code did not match the prototypes, from what I can tell it should be using size_t as the header files have it already. --- libc/inet/ntop.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libc/inet/ntop.c b/libc/inet/ntop.c index 09e3ad8bb..02590fdab 100644 --- a/libc/inet/ntop.c +++ b/libc/inet/ntop.c @@ -48,7 +48,7 @@ static const char * inet_ntop4(src, dst, size) const u_char *src; char *dst; - socklen_t size; + size_t size; { char tmp[sizeof ("255.255.255.255") + 1] = "\0"; int octet; @@ -95,7 +95,7 @@ static const char * inet_ntop6(src, dst, size) const u_char *src; char *dst; - socklen_t size; + size_t size; { /* * Note that int32_t and int16_t need only be "at least" large enough @@ -173,7 +173,7 @@ inet_ntop6(src, dst, size) /* * Check for overflow, copy, and we're done. */ - if ((socklen_t)(tp - tmp) > size) { + if ((size_t)(tp - tmp) > size) { __set_errno (ENOSPC); return (NULL); } @@ -350,7 +350,7 @@ inet_ntop(af, src, dst, size) int af; const void *src; char *dst; - socklen_t size; + size_t size; { switch (af) { case AF_INET: -- cgit v1.2.3