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/expl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hunt/huntd/expl.c') 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 #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 @@ -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]; -- cgit v1.2.3