use EOF, not -1
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 12 Oct 1990 03:04:42 +0000 (19:04 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 12 Oct 1990 03:04:42 +0000 (19:04 -0800)
SCCS-vsn: usr.bin/make/main.c 5.23

usr/src/usr.bin/make/main.c

index d733905..76b81f0 100644 (file)
@@ -17,7 +17,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)main.c     5.22 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c     5.23 (Berkeley) %G%";
 #endif /* not lint */
 
 /*-
 #endif /* not lint */
 
 /*-
@@ -113,7 +113,7 @@ MainParseArgs(argc, argv)
        char c;
 
        optind = 1;     /* since we're called more than once */
        char c;
 
        optind = 1;     /* since we're called more than once */
-rearg: while((c = getopt(argc, argv, "D:I:d:ef:ij:knqrst")) != -1) {
+rearg: while((c = getopt(argc, argv, "D:I:d:ef:ij:knqrst")) != EOF) {
                switch(c) {
                case 'D':
                        Var_Set(optarg, "1", VAR_GLOBAL);
                switch(c) {
                case 'D':
                        Var_Set(optarg, "1", VAR_GLOBAL);