diff options
author | plunky <plunky@NetBSD.org> | 2011-08-31 16:24:54 +0000 |
---|---|---|
committer | plunky <plunky@NetBSD.org> | 2011-08-31 16:24:54 +0000 |
commit | e4a1f12e7e44b2b62ece74c9ea36354fa944acf9 (patch) | |
tree | 7b2f6b6fab996c47c42c962d0211d2fffdd0ec0d /hunt/huntd/execute.c | |
parent | 8fdb2354b50bedf84e0744346e974d308ded6a1b (diff) | |
download | bsdgames-darwin-e4a1f12e7e44b2b62ece74c9ea36354fa944acf9.tar.gz bsdgames-darwin-e4a1f12e7e44b2b62ece74c9ea36354fa944acf9.tar.zst bsdgames-darwin-e4a1f12e7e44b2b62ece74c9ea36354fa944acf9.zip |
NULL does not need a cast
Diffstat (limited to 'hunt/huntd/execute.c')
-rw-r--r-- | hunt/huntd/execute.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hunt/huntd/execute.c b/hunt/huntd/execute.c index a99cccd4..e3e5ba2b 100644 --- a/hunt/huntd/execute.c +++ b/hunt/huntd/execute.c @@ -1,4 +1,4 @@ -/* $NetBSD: execute.c,v 1.9 2009/07/04 04:29:54 dholland Exp $ */ +/* $NetBSD: execute.c,v 1.10 2011/08/31 16:24:56 plunky Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,7 +32,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: execute.c,v 1.9 2009/07/04 04:29:54 dholland Exp $"); +__RCSID("$NetBSD: execute.c,v 1.10 2011/08/31 16:24:56 plunky Exp $"); #endif /* not lint */ #include <stdlib.h> @@ -566,8 +566,7 @@ pickup(PLAYER *pp, int y, int x, int prob, int obj) abort(); } if (rand_num(100) < prob) - add_shot(obj, y, x, LEFTS, req, (PLAYER *) NULL, - TRUE, pp->p_face); + add_shot(obj, y, x, LEFTS, req, NULL, TRUE, pp->p_face); else { pp->p_ammo += req; (void) snprintf(Buf, sizeof(Buf), "%3d", pp->p_ammo); |