aboutsummaryrefslogtreecommitdiff
path: root/games/random/random.c
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/random/random.c
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/random/random.c')
-rw-r--r--games/random/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/random/random.c b/games/random/random.c
index 076990b38ac5..c3ba51c2033b 100644
--- a/games/random/random.c
+++ b/games/random/random.c
@@ -67,7 +67,7 @@ main(argc, argv)
char *ep;
random_exit = unbuffer_output = 0;
- while ((ch = getopt(argc, argv, "er")) != EOF)
+ while ((ch = getopt(argc, argv, "er")) != -1)
switch (ch) {
case 'e':
random_exit = 1;