diff options
| author | simonb <simonb@NetBSD.org> | 1999-04-18 03:30:12 +0000 |
|---|---|---|
| committer | simonb <simonb@NetBSD.org> | 1999-04-18 03:30:12 +0000 |
| commit | 8934c36764e1bf60b6c457e36466b50e5e78944c (patch) | |
| tree | 4f0556f5686cd6fcd11964098f54bfe1462c7984 /sail/player.h | |
| parent | 2a748a9251600e3fed650bebd4f8af4e32f50447 (diff) | |
| download | bsdgames-darwin-8934c36764e1bf60b6c457e36466b50e5e78944c.tar.gz bsdgames-darwin-8934c36764e1bf60b6c457e36466b50e5e78944c.zip | |
initscr() returns a pointer, compare return value with NULL and not
an int.
Compatible with other versions of curses.
Diffstat (limited to 'sail/player.h')
| -rw-r--r-- | sail/player.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sail/player.h b/sail/player.h index 07c600b3..050c7971 100644 --- a/sail/player.h +++ b/sail/player.h @@ -1,4 +1,4 @@ -/* $NetBSD: player.h,v 1.6 1998/03/29 04:57:20 mrg Exp $ */ +/* $NetBSD: player.h,v 1.7 1999/04/18 03:30:12 simonb Exp $ */ /* * Copyright (c) 1983, 1993 @@ -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; |
