From 48561791ce856095040d5b9ebd604effc22aa951 Mon Sep 17 00:00:00 2001 From: David Malone Date: Mon, 5 Mar 2001 11:54:27 +0000 Subject: [PATCH] Compare initscr to NULL not ERR. Add FreeBSD tag. PR: 19044 --- games/sail/player.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/games/sail/player.h b/games/sail/player.h index ae5d3ad492eb..76c91ab09e46 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 @@ -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;