summaryrefslogtreecommitdiffstats
path: root/games/wump/wump.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-03-01 05:10:28 +0000
committerjkh <jkh@FreeBSD.org>1998-03-01 05:10:28 +0000
commit441f3c9dace4543ba229039711013ecfc24701a0 (patch)
tree11768c61275978338ad528091d06eb1cb3dc7302 /games/wump/wump.c
parent69e5a1e9f571b8af39e0b507e63b81be43f49634 (diff)
downloadFreeBSD-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/wump/wump.c')
-rw-r--r--games/wump/wump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/wump/wump.c b/games/wump/wump.c
index 68ae675..1cbf4f2 100644
--- a/games/wump/wump.c
+++ b/games/wump/wump.c
@@ -116,9 +116,9 @@ main(argc, argv)
setgid(getgid());
#ifdef DEBUG
- while ((c = getopt(argc, argv, "a:b:hp:r:t:d")) != EOF)
+ while ((c = getopt(argc, argv, "a:b:hp:r:t:d")) != -1)
#else
- while ((c = getopt(argc, argv, "a:b:hp:r:t:")) != EOF)
+ while ((c = getopt(argc, argv, "a:b:hp:r:t:")) != -1)
#endif
switch (c) {
case 'a':
OpenPOWER on IntegriCloud