summaryrefslogtreecommitdiffstats
path: root/games/cribbage/crib.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/cribbage/crib.c')
-rw-r--r--games/cribbage/crib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/cribbage/crib.c b/games/cribbage/crib.c
index 23c53df..22dddba 100644
--- a/games/cribbage/crib.c
+++ b/games/cribbage/crib.c
@@ -67,7 +67,7 @@ main(argc, argv)
/* revoke */
setgid(getgid());
- while ((ch = getopt(argc, argv, "eqr")) != EOF)
+ while ((ch = getopt(argc, argv, "eqr")) != -1)
switch (ch) {
case 'e':
explain = TRUE;
OpenPOWER on IntegriCloud