summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-31 19:36:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-31 19:36:27 +0000
commita8959147ea307de263a7af40b21fcf019f05bb7e (patch)
tree6e89656ced4e4a31efda5fc0a3dad17dfdd020ca
parent158a21b556800e8e5f28f988dc659e0a91a738db (diff)
initscr failure returns NULL
-rw-r--r--games/sail/player.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/sail/player.h b/games/sail/player.h
index 10df412ca50..0a32cd087bb 100644
--- a/games/sail/player.h
+++ b/games/sail/player.h
@@ -93,9 +93,9 @@
#define SLOT_R (SLOT_L+SLOT_X-1)
#ifdef SIGTSTP
-#define SCREENTEST() (initscr() != ERR && signal(SIGTSTP, SIG_DFL) != SIG_ERR && STAT_R < COLS && SCROLL_Y > 0)
+#define SCREENTEST() (initscr() != NULL && signal(SIGTSTP, SIG_DFL) != SIG_ERR && 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;