summaryrefslogtreecommitdiffstats
path: root/games/pig/pig.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/pig/pig.c')
-rw-r--r--games/pig/pig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/pig/pig.c b/games/pig/pig.c
index b2f9112..fa893bd 100644
--- a/games/pig/pig.c
+++ b/games/pig/pig.c
@@ -61,7 +61,7 @@ main(argc, argv)
int ch;
char buf[1024];
- while ((ch = getopt(argc, argv, "")) != EOF)
+ while ((ch = getopt(argc, argv, "")) != -1)
switch(ch) {
case '?':
default:
OpenPOWER on IntegriCloud