From: David Dykstra Date: Wed, 13 Feb 2002 18:45:17 +0000 (+0000) Subject: Patch from Jos Backus to use HAVE_SOCKADDR_LEN rather X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/145794936fc7e87c500dd809e8e67313105825fb Patch from Jos Backus to use HAVE_SOCKADDR_LEN rather than HAVE_SOCK_SIN_LEN around use of sin_len. Correct usage was already in place in clientname.c. --- diff --git a/socket.c b/socket.c index 9ac182d9..344c42e0 100644 --- a/socket.c +++ b/socket.c @@ -590,7 +590,7 @@ static int socketpair_tcp(int fd[2]) if ((listener = socket(PF_INET, SOCK_STREAM, 0)) == -1) goto failed; memset(&sock2, 0, sizeof(sock2)); -#ifdef HAVE_SOCK_SIN_LEN +#ifdef HAVE_SOCKADDR_LEN sock2.sin_len = sizeof(sock2); #endif sock2.sin_family = PF_INET;