summaryrefslogtreecommitdiffstats
path: root/hunt/huntd/expl.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/expl.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/expl.c')
-rw-r--r--hunt/huntd/expl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hunt/huntd/expl.c b/hunt/huntd/expl.c
index 82c91cb3..ff2c7463 100644
--- a/hunt/huntd/expl.c
+++ b/hunt/huntd/expl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: expl.c,v 1.4 2004/01/27 20:30:29 jsm Exp $ */
+/* $NetBSD: expl.c,v 1.5 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: expl.c,v 1.4 2004/01/27 20:30:29 jsm Exp $");
+__RCSID("$NetBSD: expl.c,v 1.5 2009/07/04 01:01:18 dholland Exp $");
#endif /* not lint */
# include <stdlib.h>
@@ -57,7 +57,7 @@ showexpl(y, x, type)
return;
if (x < 0 || x >= WIDTH)
return;
- ep = (EXPL *) malloc(sizeof (EXPL)); /* NOSTRICT */
+ ep = malloc(sizeof(*ep));
ep->e_y = y;
ep->e_x = x;
ep->e_char = type;
@@ -132,7 +132,7 @@ rollexpl()
for (pp = Monitor; pp < End_monitor; pp++)
check(pp, y, x);
# endif
- free((char *) ep);
+ free(ep);
}
for (x = EXPLEN - 1; x > 0; x--)
Expl[x] = Expl[x - 1];