summaryrefslogtreecommitdiff
path: root/bin/cat
diff options
context:
space:
mode:
authorimp <imp@cvs.openbsd.org>1996-09-28 20:52:51 +0000
committerimp <imp@cvs.openbsd.org>1996-09-28 20:52:51 +0000
commit5c0a915c8bc3e86b79a382eacc83db17dedc51d9 (patch)
treee588442cac126d6fe93f6d1a87184fd8839484a1 /bin/cat
parentc1b302e2eb47716a0c0092ffd30d8bbffc964862 (diff)
Back out last change, getopt on OpenBSD returns -1, not EOF
Diffstat (limited to 'bin/cat')
-rw-r--r--bin/cat/cat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/cat/cat.c b/bin/cat/cat.c
index 178d3b09828..d378e3747f5 100644
--- a/bin/cat/cat.c
+++ b/bin/cat/cat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cat.c,v 1.5 1996/09/28 19:36:38 imp Exp $ */
+/* $OpenBSD: cat.c,v 1.6 1996/09/28 20:52:50 imp Exp $ */
/* $NetBSD: cat.c,v 1.11 1995/09/07 06:12:54 jtc Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95";
#else
-static char rcsid[] = "$OpenBSD: cat.c,v 1.5 1996/09/28 19:36:38 imp Exp $";
+static char rcsid[] = "$OpenBSD: cat.c,v 1.6 1996/09/28 20:52:50 imp Exp $";
#endif
#endif /* not lint */
@@ -83,7 +83,7 @@ main(argc, argv)
setlocale(LC_ALL, "");
- while ((ch = getopt(argc, argv, "benstuv")) != EOF)
+ while ((ch = getopt(argc, argv, "benstuv")) != -1)
switch (ch) {
case 'b':
bflag = nflag = 1; /* -b implies -n */