diff options
author | imp <imp@FreeBSD.org> | 1999-05-23 23:17:28 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-05-23 23:17:28 +0000 |
commit | 52fa104235ad06848e8c6f1938df19bcc7482f75 (patch) | |
tree | 49ca019319a0b603310a93aef2cec718e88fb0ae /games/snake | |
parent | 66571542185a9035ec34905eec6e4bb6b2dc9a13 (diff) | |
download | FreeBSD-src-52fa104235ad06848e8c6f1938df19bcc7482f75.zip FreeBSD-src-52fa104235ad06848e8c6f1938df19bcc7482f75.tar.gz |
Getopt(3) returns -1, not EOF.
Diffstat (limited to 'games/snake')
-rw-r--r-- | games/snake/snake/snake.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/snake/snake/snake.c b/games/snake/snake/snake.c index 0b2e349..34dd265 100644 --- a/games/snake/snake/snake.c +++ b/games/snake/snake/snake.c @@ -115,7 +115,7 @@ char **argv; srandomdev(); - while ((ch = getopt(argc, argv, "l:w:")) != EOF) + while ((ch = getopt(argc, argv, "l:w:")) != -1) switch((char)ch) { #ifdef notdef case 'd': |