From b4927eeb3c0ce78e92584e8f5c602101445e1cc4 Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 4 Jul 2009 01:01:18 +0000 Subject: Remove a pile of bogus casts. One object file diff, crosschecked and found harmless. --- hunt/huntd/execute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hunt/huntd/execute.c') 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 #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 @@ -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"); -- cgit v1.2.3