diff options
author | ru <ru@FreeBSD.org> | 2008-02-19 07:09:19 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2008-02-19 07:09:19 +0000 |
commit | 2aa5a61fd32c181b70181233740e601e8d759d8d (patch) | |
tree | 578506eede3120635d7308f1fed95a1c6147a49a /games/fortune/strfile | |
parent | 82432917a301545733ec74d5c38248d1009e3e9d (diff) | |
download | FreeBSD-src-2aa5a61fd32c181b70181233740e601e8d759d8d.zip FreeBSD-src-2aa5a61fd32c181b70181233740e601e8d759d8d.tar.gz |
getopt(3) returns -1, not EOF.
Diffstat (limited to 'games/fortune/strfile')
-rw-r--r-- | games/fortune/strfile/strfile.c | 2 |
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++; |