summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2008-02-19 07:09:19 +0000
committerru <ru@FreeBSD.org>2008-02-19 07:09:19 +0000
commit2aa5a61fd32c181b70181233740e601e8d759d8d (patch)
tree578506eede3120635d7308f1fed95a1c6147a49a /games
parent82432917a301545733ec74d5c38248d1009e3e9d (diff)
downloadFreeBSD-src-2aa5a61fd32c181b70181233740e601e8d759d8d.zip
FreeBSD-src-2aa5a61fd32c181b70181233740e601e8d759d8d.tar.gz
getopt(3) returns -1, not EOF.
Diffstat (limited to 'games')
-rw-r--r--games/fortune/strfile/strfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/fortune/strfile/strfile.c b/games/fortune/strfile/strfile.c
index 69240d1..790a064 100644
--- a/games/fortune/strfile/strfile.c
+++ b/games/fortune/strfile/strfile.c
@@ -270,7 +270,7 @@ char **argv;
{
int ch;
- while ((ch = getopt(argc, argv, "Cc:iorsx")) != EOF)
+ while ((ch = getopt(argc, argv, "Cc:iorsx")) != -1)
switch(ch) {
case 'C': /* embedded comments */
Cflag++;
OpenPOWER on IntegriCloud