From: Martin Pool Date: Wed, 15 Aug 2001 06:47:40 +0000 (+0000) Subject: Use socklen_t for getpeername, since we hopefully now have it defined X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/c1f62a573a8351dbc663467e744800935c7574d5 Use socklen_t for getpeername, since we hopefully now have it defined on all platforms. --- diff --git a/socket.c b/socket.c index 5860ce79..870e7601 100644 --- 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;