diff options
author | David Dykstra <dwd@samba.org> | 2002-02-13 18:45:17 +0000 |
---|---|---|
committer | David Dykstra <dwd@samba.org> | 2002-02-13 18:45:17 +0000 |
commit | 145794936fc7e87c500dd809e8e67313105825fb (patch) | |
tree | c474da5616ede9e258845005d83f709593285026 /socket.c | |
parent | 301c680fd7689527bf5078ca8139eaa5458009de (diff) | |
download | rsync-145794936fc7e87c500dd809e8e67313105825fb.tar.gz |
Patch from Jos Backus <josb@cncdsl.com> 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.
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |