diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-06-18 09:51:44 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-06-18 09:51:44 +0000 |
commit | f578043391634ae1d345e84657fec7ecfb0f34a0 (patch) | |
tree | c207763c58c45fffb42dc6b5ef2f0e13fed33133 /socket.c | |
parent | e8f5b936ad534e84c0bab9b1a41b1ce5680945f5 (diff) | |
download | rsync-f578043391634ae1d345e84657fec7ecfb0f34a0.tar.gz |
for consistency use memcpy/memset everywhere instead of bcopy/bzero
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |