about summary refs log tree commit diff
diff options
context:
space:
mode:
-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;