semantic cleanup; balance {}'s for Pyramids
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 22 Dec 1987 10:04:09 +0000 (02:04 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 22 Dec 1987 10:04:09 +0000 (02:04 -0800)
SCCS-vsn: old/more/more.c 5.16

usr/src/old/more/more.c

index 673bada..6c7b8e1 100644 (file)
@@ -17,7 +17,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)more.c     5.15 (Berkeley) %G%";
+static char sccsid[] = "@(#)more.c     5.16 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -398,7 +398,7 @@ magic(f, fs)
                        return(1);
                }
        (void)fseek(f, 0L, L_SET);              /* rewind() not necessary */
                        return(1);
                }
        (void)fseek(f, 0L, L_SET);              /* rewind() not necessary */
-       return(NULL);
+       return(0);
 }
 
 /*
 }
 
 /*
@@ -1390,6 +1390,7 @@ va_dcl
            execv (cmd, argp);
            write (2, "exec failed\n", 12);
            exit (1);
            execv (cmd, argp);
            write (2, "exec failed\n", 12);
            exit (1);
+           va_end(argp);       /* balance {}'s for some UNIX's */
        }
        if (id > 0) {
            signal (SIGINT, SIG_IGN);
        }
        if (id > 0) {
            signal (SIGINT, SIG_IGN);