diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2001-03-05 11:54:27 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2001-03-05 11:54:27 +0000 |
commit | 7b2b6ab494ae380ee70b759135e5b1c47785b9f9 (patch) | |
tree | ab5306e1bf2756c8f6a5b479bad1274bdfe91e3a /games/sail | |
parent | 3053373025016a26ef0ee0daf227f6bc057ed305 (diff) | |
download | FreeBSD-src-7b2b6ab494ae380ee70b759135e5b1c47785b9f9.zip FreeBSD-src-7b2b6ab494ae380ee70b759135e5b1c47785b9f9.tar.gz |
Compare initscr to NULL not ERR. Add FreeBSD tag.
PR: 19044
Diffstat (limited to 'games/sail')
-rw-r--r-- | games/sail/player.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/games/sail/player.h b/games/sail/player.h index ae5d3ad..76c91ab 100644 --- a/games/sail/player.h +++ b/games/sail/player.h @@ -31,6 +31,7 @@ * SUCH DAMAGE. * * @(#)player.h 8.1 (Berkeley) 5/31/93 + * $FreeBSD$ */ #include <curses.h> @@ -91,9 +92,9 @@ #define SLOT_R (SLOT_L+SLOT_X-1) #ifdef SIGTSTP -#define SCREENTEST() (initscr() != ERR && signal(SIGTSTP, SIG_DFL) != BADSIG && STAT_R < COLS && SCROLL_Y > 0) +#define SCREENTEST() (initscr() != NULL && signal(SIGTSTP, SIG_DFL) != BADSIG && STAT_R < COLS && SCROLL_Y > 0) #else -#define SCREENTEST() (initscr() != ERR && STAT_R < COLS && SCROLL_Y > 0) +#define SCREENTEST() (initscr() != NULL && STAT_R < COLS && SCROLL_Y > 0) #endif WINDOW *view_w; |