summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-01-15 23:44:39 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-01-15 23:44:39 +0000
commit552d265b6ced1e56d31f20f16a7fe9ae818d568b (patch)
tree219a59b7e7a5ef53ddfc66cdc38e73e3f79258c8 /usr.bin/make
parentbf6413046b73005ecca3f5352c8711d00a6d00b9 (diff)
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index f588e7a82f5..c8447760ac2 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.9 1996/11/30 21:08:59 millert Exp $ */
+/* $OpenBSD: main.c,v 1.10 1997/01/15 23:42:51 millert Exp $ */
/* $NetBSD: main.c,v 1.31 1996/11/06 17:59:12 christos Exp $ */
/*
@@ -49,7 +49,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.3 (Berkeley) 3/19/94";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.9 1996/11/30 21:08:59 millert Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.10 1997/01/15 23:42:51 millert Exp $";
#endif
#endif /* not lint */
@@ -172,7 +172,7 @@ MainParseArgs(argc, argv)
#else
# define OPTFLAGS "BD:I:PSV:d:ef:ij:km:nqrst"
#endif
-rearg: while((c = getopt(argc, argv, OPTFLAGS)) != EOF) {
+rearg: while((c = getopt(argc, argv, OPTFLAGS)) != -1) {
switch(c) {
case 'D':
Var_Set(optarg, "1", VAR_GLOBAL);