summaryrefslogtreecommitdiffstats
path: root/games/fortune
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-05-23 23:17:28 +0000
committerimp <imp@FreeBSD.org>1999-05-23 23:17:28 +0000
commit52fa104235ad06848e8c6f1938df19bcc7482f75 (patch)
tree49ca019319a0b603310a93aef2cec718e88fb0ae /games/fortune
parent66571542185a9035ec34905eec6e4bb6b2dc9a13 (diff)
downloadFreeBSD-src-52fa104235ad06848e8c6f1938df19bcc7482f75.zip
FreeBSD-src-52fa104235ad06848e8c6f1938df19bcc7482f75.tar.gz
Getopt(3) returns -1, not EOF.
Diffstat (limited to 'games/fortune')
-rw-r--r--games/fortune/fortune/fortune.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c
index 9d7671c..44910ca 100644
--- a/games/fortune/fortune/fortune.c
+++ b/games/fortune/fortune/fortune.c
@@ -306,9 +306,9 @@ register char **argv;
pat = NULL;
# ifdef DEBUG
- while ((ch = getopt(argc, argv, "aDefilm:osw")) != EOF)
+ while ((ch = getopt(argc, argv, "aDefilm:osw")) != -1)
#else
- while ((ch = getopt(argc, argv, "aefilm:osw")) != EOF)
+ while ((ch = getopt(argc, argv, "aefilm:osw")) != -1)
#endif /* DEBUG */
switch(ch) {
case 'a': /* any fortune */
OpenPOWER on IntegriCloud