summaryrefslogtreecommitdiffstats
path: root/hunt/huntd/execute.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-07-04 01:01:18 +0000
committerdholland <dholland@NetBSD.org>2009-07-04 01:01:18 +0000
commitb4927eeb3c0ce78e92584e8f5c602101445e1cc4 (patch)
tree3c95d1f0ffe82f78c39a383da2c96235c44c5e9c /hunt/huntd/execute.c
parentd00a8d1e94456d45abbb7c94cd846661735277ab (diff)
downloadbsdgames-darwin-b4927eeb3c0ce78e92584e8f5c602101445e1cc4.tar.gz
bsdgames-darwin-b4927eeb3c0ce78e92584e8f5c602101445e1cc4.tar.zst
bsdgames-darwin-b4927eeb3c0ce78e92584e8f5c602101445e1cc4.zip
Remove a pile of bogus casts. One object file diff, crosschecked and
found harmless.
Diffstat (limited to 'hunt/huntd/execute.c')
-rw-r--r--hunt/huntd/execute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hunt/huntd/execute.c b/hunt/huntd/execute.c
index 46eafa91..dd887670 100644
--- a/hunt/huntd/execute.c
+++ b/hunt/huntd/execute.c
@@ -1,4 +1,4 @@
-/* $NetBSD: execute.c,v 1.6 2009/06/28 21:12:35 dholland Exp $ */
+/* $NetBSD: execute.c,v 1.7 2009/07/04 01:01:18 dholland 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.6 2009/06/28 21:12:35 dholland Exp $");
+__RCSID("$NetBSD: execute.c,v 1.7 2009/07/04 01:01:18 dholland Exp $");
#endif /* not lint */
# include <stdlib.h>
@@ -496,7 +496,7 @@ create_shot(type, y, x, face, charge, size, owner, score, expl, over)
{
BULLET *bp;
- bp = (BULLET *) malloc(sizeof (BULLET)); /* NOSTRICT */
+ bp = malloc(sizeof(*bp));
if (bp == NULL) {
if (owner != NULL)
message(owner, "Out of memory");