diff options
author | imp <imp@cvs.openbsd.org> | 1996-09-28 20:52:51 +0000 |
---|---|---|
committer | imp <imp@cvs.openbsd.org> | 1996-09-28 20:52:51 +0000 |
commit | 5c0a915c8bc3e86b79a382eacc83db17dedc51d9 (patch) | |
tree | e588442cac126d6fe93f6d1a87184fd8839484a1 /bin/cat | |
parent | c1b302e2eb47716a0c0092ffd30d8bbffc964862 (diff) |
Back out last change, getopt on OpenBSD returns -1, not EOF
Diffstat (limited to 'bin/cat')
-rw-r--r-- | bin/cat/cat.c | 6 |
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 */ |