about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrey Borzenkov <bor@users.sourceforge.net>2001-10-08 07:19:35 +0000
committerAndrey Borzenkov <bor@users.sourceforge.net>2001-10-08 07:19:35 +0000
commitb109834dc2d3e86ac4bed09a7957d6ba9d2f517a (patch)
tree58dc85fb69547812a682409b3c5a2df1bd34ade6
parent99b7512cd9d86809a7bb175c7a62f9083569efad (diff)
downloadzsh-b109834dc2d3e86ac4bed09a7957d6ba9d2f517a.tar.gz
zsh-b109834dc2d3e86ac4bed09a7957d6ba9d2f517a.tar.xz
zsh-b109834dc2d3e86ac4bed09a7957d6ba9d2f517a.zip
15964: use SOCKLEN_T
-rw-r--r--ChangeLog4
-rw-r--r--Src/Modules/tcp.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6a486a7f0..0fe7d5909 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-10-08  Andrej Borsenkow  <bor@zsh.org>
+
+	* 15964: Src/Modules/tcp.c: use SOCKLEN_T
+
 2001-10-06  Clint Adams  <clint@zsh.org>
 
 	* Norbert Koch: 15954: Doc/Zsh/arith.yo:
diff --git a/Src/Modules/tcp.c b/Src/Modules/tcp.c
index 405ce2aa6..baf742f19 100644
--- a/Src/Modules/tcp.c
+++ b/Src/Modules/tcp.c
@@ -355,7 +355,8 @@ tcp_connect(Tcp_session sess, char *addrp, struct hostent *zhost, int d_port)
 static int
 bin_ztcp(char *nam, char **args, char *ops, int func)
 {
-    int herrno, err=1, destport, force=0, verbose=0, test=0, targetfd=0, len;
+    int herrno, err=1, destport, force=0, verbose=0, test=0, targetfd=0;
+    SOCKLEN_T  len;
     char **addrp, *desthost, *localname, *remotename, **dargs;
     struct hostent *zthost = NULL, *ztpeer = NULL;
     struct servent *srv;