diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-03-01 05:10:28 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-03-01 05:10:28 +0000 |
commit | 01f228ffbe35f4398445427162e9a8c0ccbb8112 (patch) | |
tree | 178aadb727a1e12c3ab25ebc4dfa83d753189f40 /games/fish | |
parent | ffc82b0a70cb3a4952d29251c5685bacefbf1424 (diff) | |
download | src-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/fish')
-rw-r--r-- | games/fish/fish.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/fish/fish.c b/games/fish/fish.c index 8ca6a3297a40..452808a19ee5 100644 --- a/games/fish/fish.c +++ b/games/fish/fish.c @@ -76,7 +76,7 @@ main(argc, argv) { int ch, move; - while ((ch = getopt(argc, argv, "p")) != EOF) + while ((ch = getopt(argc, argv, "p")) != -1) switch(ch) { case 'p': promode = 1; |