Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: SOCKLEN_T in tcp.c



While it is pretty harmless in connect() it may be an issue in
setsockopt() (alignment and such). In any case, why we create configure
tests when we do not use them? :-)

-andrej

Index: Src/Modules/tcp.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/tcp.c,v
retrieving revision 1.16
diff -u -r1.16 tcp.c
--- Src/Modules/tcp.c   2001/10/02 02:35:01     1.16
+++ Src/Modules/tcp.c   2001/10/08 07:08:31
@@ -355,7 +355,8 @@
 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;



Messages sorted by: Reverse Date, Date, Thread, Author