git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0042f81
)
Use new HAVE_SOCKADDR_SIN_LEN define (replaces HAVE_SOCKADDR_LEN).
author
Wayne Davison
<wayned@samba.org>
Fri, 27 Feb 2004 07:22:40 +0000
(07:22 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 27 Feb 2004 07:22:40 +0000
(07:22 +0000)
clientname.c
patch
|
blob
|
history
socket.c
patch
|
blob
|
history
diff --git
a/clientname.c
b/clientname.c
index 661d4ab654a34ccbb2b2289348fd2c27009e4a10..5dbaaf97292f3d23cbfa0750fdf4f80db56237c3 100644
(file)
--- a/
clientname.c
+++ b/
clientname.c
@@
-195,7
+195,7
@@
void client_sockaddr(int fd,
memset(sin, 0, sizeof(*sin));
sin->sin_family = AF_INET;
*ss_len = sizeof(struct sockaddr_in);
-#if
def HAVE_SOCKADDR
_LEN
+#if
HAVE_SOCKADDR_SIN
_LEN
sin->sin_len = *ss_len;
#endif
sin->sin_port = sin6.sin6_port;
diff --git
a/socket.c
b/socket.c
index 4ca87037fd22ec71674c8c574f70abd7961dc837..bf4f26bd5490a989864d601c94bef335f3d80749 100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-698,7
+698,7
@@
static int socketpair_tcp(int fd[2])
goto failed;
memset(&sock2, 0, sizeof sock2);
-#if
def HAVE_SOCKADDR
_LEN
+#if
HAVE_SOCKADDR_SIN
_LEN
sock2.sin_len = sizeof sock2;
#endif
sock2.sin_family = PF_INET;