summaryrefslogtreecommitdiffstats
path: root/battlestar/fly.c
diff options
context:
space:
mode:
authorsimonb <simonb@NetBSD.org>1999-04-18 03:30:12 +0000
committersimonb <simonb@NetBSD.org>1999-04-18 03:30:12 +0000
commit8934c36764e1bf60b6c457e36466b50e5e78944c (patch)
tree4f0556f5686cd6fcd11964098f54bfe1462c7984 /battlestar/fly.c
parent2a748a9251600e3fed650bebd4f8af4e32f50447 (diff)
downloadbsdgames-darwin-8934c36764e1bf60b6c457e36466b50e5e78944c.tar.gz
bsdgames-darwin-8934c36764e1bf60b6c457e36466b50e5e78944c.tar.zst
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 'battlestar/fly.c')
-rw-r--r--battlestar/fly.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/battlestar/fly.c b/battlestar/fly.c
index ebe292a1..bbc81402 100644
--- a/battlestar/fly.c
+++ b/battlestar/fly.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fly.c,v 1.6 1997/10/11 02:07:20 lukem Exp $ */
+/* $NetBSD: fly.c,v 1.7 1999/04/18 03:30:12 simonb Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)fly.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: fly.c,v 1.6 1997/10/11 02:07:20 lukem Exp $");
+__RCSID("$NetBSD: fly.c,v 1.7 1999/04/18 03:30:12 simonb Exp $");
#endif
#endif /* not lint */
@@ -75,7 +75,7 @@ int
visual()
{
destroyed = 0;
- if (initscr() == ERR) {
+ if (initscr() == NULL) {
puts("Whoops! No more memory...");
return (0);
}