Use socklen_t for getpeername, since we hopefully now have it defined
authorMartin Pool <mbp@samba.org>
Wed, 15 Aug 2001 06:47:40 +0000 (06:47 +0000)
committerMartin Pool <mbp@samba.org>
Wed, 15 Aug 2001 06:47:40 +0000 (06:47 +0000)
on all platforms.

socket.c

index 5860ce7..870e760 100644 (file)
--- a/socket.c
+++ b/socket.c
@@ -443,7 +443,7 @@ char *client_addr(int fd)
 {
        struct sockaddr sa;
        struct sockaddr_in *sockin = (struct sockaddr_in *) (&sa);
-       int     length = sizeof(sa);
+       socklen_t length = sizeof(sa);
        static char addr_buf[100];
        static int initialised;