aboutsummaryrefslogtreecommitdiff
path: root/games/quiz
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1998-03-01 05:10:28 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1998-03-01 05:10:28 +0000
commit01f228ffbe35f4398445427162e9a8c0ccbb8112 (patch)
tree178aadb727a1e12c3ab25ebc4dfa83d753189f40 /games/quiz
parentffc82b0a70cb3a4952d29251c5685bacefbf1424 (diff)
downloadsrc-01f228ffbe35f4398445427162e9a8c0ccbb8112.tar.gz
src-01f228ffbe35f4398445427162e9a8c0ccbb8112.zip
Wargh! Who went and changed all the getopt() comparisons from -1 to
EOF? The getopt(3) manpage clearly states that the return value is *-1*, not EOF! Besides, getopt(3) isn't reading from a file. :) Noticed-while: merging to 2.2 (where this is correct).
Notes
Notes: svn path=/head/; revision=33937
Diffstat (limited to 'games/quiz')
-rw-r--r--games/quiz/quiz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/quiz/quiz.c b/games/quiz/quiz.c
index 637bc258ed4c..027ef4081362 100644
--- a/games/quiz/quiz.c
+++ b/games/quiz/quiz.c
@@ -85,7 +85,7 @@ main(argc, argv)
setgid(getgid());
indexfile = _PATH_QUIZIDX;
- while ((ch = getopt(argc, argv, "i:t")) != EOF)
+ while ((ch = getopt(argc, argv, "i:t")) != -1)
switch(ch) {
case 'i':
indexfile = optarg;