summaryrefslogtreecommitdiffstats
path: root/usr.bin/cmp/cmp.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/cmp/cmp.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/cmp/cmp.c')
-rw-r--r--usr.bin/cmp/cmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cmp/cmp.c b/usr.bin/cmp/cmp.c
index 9df77c0736c..80b7b8ed7c6 100644
--- a/usr.bin/cmp/cmp.c
+++ b/usr.bin/cmp/cmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmp.c,v 1.4 1996/08/01 00:29:10 michaels Exp $ */
+/* $OpenBSD: cmp.c,v 1.5 1997/01/15 23:42:19 millert Exp $ */
/* $NetBSD: cmp.c,v 1.7 1995/09/08 03:22:56 tls Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)cmp.c 8.3 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: cmp.c,v 1.4 1996/08/01 00:29:10 michaels Exp $";
+static char rcsid[] = "$OpenBSD: cmp.c,v 1.5 1997/01/15 23:42:19 millert Exp $";
#endif
#endif /* not lint */
@@ -77,7 +77,7 @@ main(argc, argv)
setlocale(LC_ALL, "");
- while ((ch = getopt(argc, argv, "ls")) != EOF)
+ while ((ch = getopt(argc, argv, "ls")) != -1)
switch (ch) {
case 'l': /* print all differences */
lflag = 1;