summaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-06-18 09:51:44 +0000
committerAndrew Tridgell <tridge@samba.org>1998-06-18 09:51:44 +0000
commitf578043391634ae1d345e84657fec7ecfb0f34a0 (patch)
treec207763c58c45fffb42dc6b5ef2f0e13fed33133 /socket.c
parente8f5b936ad534e84c0bab9b1a41b1ce5680945f5 (diff)
downloadrsync-f578043391634ae1d345e84657fec7ecfb0f34a0.tar.gz
for consistency use memcpy/memset everywhere instead of bcopy/bzero
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index acf7a1be..790a86d9 100644
--- a/socket.c
+++ b/socket.c
@@ -81,7 +81,7 @@ static int open_socket_in(int type, int port)
return -1;
}
- bzero((char *)&sock,sizeof(sock));
+ memset((char *)&sock,0,sizeof(sock));
memcpy((char *)&sock.sin_addr,(char *)hp->h_addr, hp->h_length);
sock.sin_port = htons(port);
sock.sin_family = hp->h_addrtype;