diff options
author | jkh <jkh@FreeBSD.org> | 1998-03-01 05:10:28 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1998-03-01 05:10:28 +0000 |
commit | 441f3c9dace4543ba229039711013ecfc24701a0 (patch) | |
tree | 11768c61275978338ad528091d06eb1cb3dc7302 /games/factor/factor.c | |
parent | 69e5a1e9f571b8af39e0b507e63b81be43f49634 (diff) | |
download | FreeBSD-src-441f3c9dace4543ba229039711013ecfc24701a0.zip FreeBSD-src-441f3c9dace4543ba229039711013ecfc24701a0.tar.gz |
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).
Diffstat (limited to 'games/factor/factor.c')
-rw-r--r-- | games/factor/factor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/factor/factor.c b/games/factor/factor.c index 92f7415..157cecb 100644 --- a/games/factor/factor.c +++ b/games/factor/factor.c @@ -94,7 +94,7 @@ main(argc, argv) int ch; char *p, buf[100]; /* > max number of digits. */ - while ((ch = getopt(argc, argv, "")) != EOF) + while ((ch = getopt(argc, argv, "")) != -1) switch (ch) { case '?': default: |