summaryrefslogtreecommitdiffstats
path: root/sail
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>1999-09-17 17:07:11 +0000
committerjsm <jsm@NetBSD.org>1999-09-17 17:07:11 +0000
commit4abec8c95cde4e9e3bdd2ea3c8f7ab7733a191af (patch)
treebd18b16daafedd5421d5f4089c371ac835b5c613 /sail
parentf3b72bb6f00ed3af77a9c2fb10fff4678f05e99b (diff)
downloadbsdgames-darwin-4abec8c95cde4e9e3bdd2ea3c8f7ab7733a191af.tar.gz
bsdgames-darwin-4abec8c95cde4e9e3bdd2ea3c8f7ab7733a191af.tar.zst
bsdgames-darwin-4abec8c95cde4e9e3bdd2ea3c8f7ab7733a191af.zip
Fix some uses of NULL as non-pointer and 0 for null pointer.
Diffstat (limited to 'sail')
-rw-r--r--sail/game.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sail/game.c b/sail/game.c
index 645c6a4d..1b524dc5 100644
--- a/sail/game.c
+++ b/sail/game.c
@@ -1,4 +1,4 @@
-/* $NetBSD: game.c,v 1.5 1997/10/13 19:44:09 christos Exp $ */
+/* $NetBSD: game.c,v 1.6 1999/09/17 17:07:11 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)game.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: game.c,v 1.5 1997/10/13 19:44:09 christos Exp $");
+__RCSID("$NetBSD: game.c,v 1.6 1999/09/17 17:07:11 jsm Exp $");
#endif
#endif /* not lint */
@@ -52,7 +52,8 @@ char *af;
int turns;
turns = ship->specs->ta;
- if ((*af = (ship->file->drift > 1 && turns)) != NULL) {
+ *af = (ship->file->drift > 1 && turns);
+ if (*af != '\0') {
turns--;
if (ship->file->FS == 1)
turns = 0;