summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2001-05-08 13:59:30 +0000
committerDavid McCullough <davidm@snapgear.com>2001-05-08 13:59:30 +0000
commita15d4cd59db2be25fe6f4b6bdb27dace87ff281d (patch)
tree1aa02c0f112eba66c72d37c682a9c0e039826260 /libc
parent05669c069b1fd888b930240e9985eee17468fdd4 (diff)
Code did not match the prototypes, from what I can tell it should be using
size_t as the header files have it already.
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/ntop.c8
1 files 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: