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

Re: zsh-3.0-pre2 released



There's a couple simple problems with the pre2 release that cause a lot
of warnings when compiling.  One is the DPUTS macro uses 'X' where it
should have 'Y'.  The other is the use of an "int *" where it should be a
"pid_t *".  Here's the diff.

..wayne..
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Index: Src/signals.c
@@ -464,7 +464,7 @@
 	    Job jn;
 	    Process pn;
             pid_t pid;
-	    int *procsubpid = &cmdoutpid;
+	    pid_t *procsubpid = &cmdoutpid;
 	    int *procsubval = &cmdoutval;
 	    struct execstack *es = exstack;
 
Index: Src/zsh.h
@@ -1307,7 +1307,7 @@
 
 #ifdef DEBUG
 # define DPUTS(X,Y) if (!(X)) {;} else \
-			fprintf(stderr, "%s\n", X), fflush(stderr)
+			fprintf(stderr, "%s\n", Y), fflush(stderr)
 # define MUSTUSEHEAP(X) if (useheap) {;} else \
 		fprintf(stderr, "BUG: permanent allocation in %s\n", X), \
 		fflush(stderr)
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---




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