From 4abec8c95cde4e9e3bdd2ea3c8f7ab7733a191af Mon Sep 17 00:00:00 2001 From: jsm Date: Fri, 17 Sep 1999 17:07:11 +0000 Subject: Fix some uses of NULL as non-pointer and 0 for null pointer. --- sail/game.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sail/game.c') 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; -- cgit v1.2.3