summaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
authorDavid Dykstra <dwd@samba.org>1999-02-09 18:35:29 +0000
committerDavid Dykstra <dwd@samba.org>1999-02-09 18:35:29 +0000
commitd41c7d025c1725b921ef51c70a705a51b5c36332 (patch)
tree462ee4add162940a2f8dd2e7b385ccd06d55db4d /socket.c
parentb86f0cefa23fff464bb68f53b76523cf8ce26436 (diff)
downloadrsync-d41c7d025c1725b921ef51c70a705a51b5c36332.tar.gz
Use MAXHOSTNAMELEN (256) for the array holding the host_name in socket.c
instead of 200. Move the defines of True and False to rsync.h. Eliminate the defines of BOOL in loadparm.c and params.c because it is already defined in rsync.h. Changes suggested by Roman Gollent roman.gollent@wdr.com
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 b9f01a61..e7e98a69 100644
--- a/socket.c
+++ b/socket.c
@@ -67,7 +67,7 @@ static int open_socket_in(int type, int port)
{
struct hostent *hp;
struct sockaddr_in sock;
- char host_name[200];
+ char host_name[MAXHOSTNAMELEN];
int res;
int one=1;