diff options
Diffstat (limited to 'games/snake')
-rw-r--r-- | games/snake/snake.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/games/snake/snake.c b/games/snake/snake.c index d6ce2d4482d..e74e616435b 100644 --- a/games/snake/snake.c +++ b/games/snake/snake.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snake.c,v 1.15 2013/08/29 20:22:20 naddy Exp $ */ +/* $OpenBSD: snake.c,v 1.16 2014/11/16 04:49:49 guenther Exp $ */ /* $NetBSD: snake.c,v 1.8 1995/04/29 00:06:41 mycroft Exp $ */ /* @@ -41,7 +41,6 @@ * cc -O snake.c move.c -o snake -lm -lcurses */ -#include <sys/param.h> #include <sys/types.h> #include <sys/ioctl.h> @@ -184,7 +183,7 @@ main(int argc, char *argv[]) if (!ccnt || ccnt > COLS - 3) ccnt = COLS - 3; - i = MIN(lcnt, ccnt); + i = lcnt < ccnt ? lcnt : ccnt; if (i < 4) { endwin(); errx(1, "screen too small for a fair game."); |