zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: SOCKLEN_T in tcp.c
@ 2001-10-08  7:12 Borsenkow Andrej
  0 siblings, 0 replies; only message in thread
From: Borsenkow Andrej @ 2001-10-08  7:12 UTC (permalink / raw)
  To: zsh-workers

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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-08  7:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-08  7:12 PATCH: SOCKLEN_T in tcp.c Borsenkow Andrej

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).