summaryrefslogtreecommitdiffstats
path: root/usr.bin/rev/rev.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/rev/rev.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/rev/rev.c')
-rw-r--r--usr.bin/rev/rev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rev/rev.c b/usr.bin/rev/rev.c
index abf696301dc..9362944f9dc 100644
--- a/usr.bin/rev/rev.c
+++ b/usr.bin/rev/rev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rev.c,v 1.2 1996/06/26 05:38:29 deraadt Exp $ */
+/* $OpenBSD: rev.c,v 1.3 1997/01/15 23:43:05 millert Exp $ */
/* $NetBSD: rev.c,v 1.5 1995/09/28 08:49:40 tls Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)rev.c 8.3 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: rev.c,v 1.2 1996/06/26 05:38:29 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rev.c,v 1.3 1997/01/15 23:43:05 millert Exp $";
#endif
#endif /* not lint */
@@ -69,7 +69,7 @@ main(argc, argv)
size_t len;
int ch, rval;
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
case '?':
default: