summaryrefslogtreecommitdiffstats
path: root/fortune/strfile/strfile.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-10 13:04:33 +0000
committerlukem <lukem@NetBSD.org>1997-10-10 13:04:33 +0000
commit34ef7ac7fd8bd4c426cd292ac4eb658d67867eab (patch)
tree244f882ac1c895cb30a5f433d4a958133f9c2f88 /fortune/strfile/strfile.c
parent17ff3fad7399289dd8b80272dfd1e7c7a6791c28 (diff)
downloadbsdgames-darwin-34ef7ac7fd8bd4c426cd292ac4eb658d67867eab.tar.gz
bsdgames-darwin-34ef7ac7fd8bd4c426cd292ac4eb658d67867eab.tar.zst
bsdgames-darwin-34ef7ac7fd8bd4c426cd292ac4eb658d67867eab.zip
WARNSify
Diffstat (limited to 'fortune/strfile/strfile.c')
-rw-r--r--fortune/strfile/strfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fortune/strfile/strfile.c b/fortune/strfile/strfile.c
index 1df7f9d9..1e37208b 100644
--- a/fortune/strfile/strfile.c
+++ b/fortune/strfile/strfile.c
@@ -1,4 +1,4 @@
-/* $NetBSD: strfile.c,v 1.5 1996/10/13 00:01:05 christos Exp $ */
+/* $NetBSD: strfile.c,v 1.6 1997/10/10 13:04:42 lukem Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -46,7 +46,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)strfile.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: strfile.c,v 1.5 1996/10/13 00:01:05 christos Exp $";
+static char rcsid[] = "$NetBSD: strfile.c,v 1.6 1997/10/10 13:04:42 lukem Exp $";
#endif
#endif /* not lint */
@@ -266,7 +266,7 @@ char **argv;
extern int optind;
int ch;
- while ((ch = getopt(argc, argv, "c:iorsx")) != EOF)
+ while ((ch = getopt(argc, argv, "c:iorsx")) != -1)
switch(ch) {
case 'c': /* new delimiting char */
Delimch = *optarg;