summaryrefslogtreecommitdiffstats
path: root/usr.bin/script/script.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-01-15 23:40:20 +0000
committermillert <millert@openbsd.org>1997-01-15 23:40:20 +0000
commit72799b18e5d7fe7a63e4137ee58a606d3817781d (patch)
tree698a9ab6fd99eb5b6c651ec199bb17cca9178980 /usr.bin/script/script.c
parentsync with NetBSD 970112 -moj (diff)
downloadwireguard-openbsd-72799b18e5d7fe7a63e4137ee58a606d3817781d.tar.xz
wireguard-openbsd-72799b18e5d7fe7a63e4137ee58a606d3817781d.zip
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'usr.bin/script/script.c')
-rw-r--r--usr.bin/script/script.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index 1496907fe23..058bc326c44 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: script.c,v 1.2 1996/06/26 05:39:02 deraadt Exp $ */
+/* $OpenBSD: script.c,v 1.3 1997/01/15 23:43:11 millert Exp $ */
/* $NetBSD: script.c,v 1.3 1994/12/21 08:55:43 jtc Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: script.c,v 1.2 1996/06/26 05:39:02 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: script.c,v 1.3 1997/01/15 23:43:11 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -92,7 +92,7 @@ main(argc, argv)
char ibuf[BUFSIZ];
aflg = 0;
- while ((ch = getopt(argc, argv, "a")) != EOF)
+ while ((ch = getopt(argc, argv, "a")) != -1)
switch(ch) {
case 'a':
aflg = 1;