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/primes | |
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/primes')
-rw-r--r-- | games/primes/primes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/primes/primes.c b/games/primes/primes.c index f174e9006f26..c2e0702984ba 100644 --- a/games/primes/primes.c +++ b/games/primes/primes.c @@ -115,7 +115,7 @@ main(argc, argv) int ch; char *p; - while ((ch = getopt(argc, argv, "")) != EOF) + while ((ch = getopt(argc, argv, "")) != -1) switch (ch) { case '?': default: |