summaryrefslogtreecommitdiffstats
path: root/hack/hack.end.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2011-08-06 20:18:26 +0000
committerdholland <dholland@NetBSD.org>2011-08-06 20:18:26 +0000
commit9454bf2a02784b7f28fbab922d3d8b56b2193786 (patch)
treea5acc680f74543e2bb47b6067344e7e9e5759f5d /hack/hack.end.c
parenta96166e2f80ef376b0a2cdea16f09df48fe56d8c (diff)
downloadbsdgames-darwin-9454bf2a02784b7f28fbab922d3d8b56b2193786.tar.gz
bsdgames-darwin-9454bf2a02784b7f28fbab922d3d8b56b2193786.tar.zst
bsdgames-darwin-9454bf2a02784b7f28fbab922d3d8b56b2193786.zip
Use the right type for the malloc wrapper function, and don't cast the
return value. (XXX: Except for a pile of allocation macros that produce typed pointer results; there the typechecking of the result assignment is more valuable than the warning if the alloc function isn't declared properly. These macros should go away.)
Diffstat (limited to 'hack/hack.end.c')
-rw-r--r--hack/hack.end.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hack/hack.end.c b/hack/hack.end.c
index 6d972497..2e32fc7d 100644
--- a/hack/hack.end.c
+++ b/hack/hack.end.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.end.c,v 1.14 2010/02/03 15:34:38 roy Exp $ */
+/* $NetBSD: hack.end.c,v 1.15 2011/08/06 20:18:26 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.end.c,v 1.14 2010/02/03 15:34:38 roy Exp $");
+__RCSID("$NetBSD: hack.end.c,v 1.15 2011/08/06 20:18:26 dholland Exp $");
#endif /* not lint */
#include <signal.h>
@@ -300,7 +300,7 @@ done(const char *st1)
exit(0);
}
-#define newttentry() (struct toptenentry *) alloc(sizeof(struct toptenentry))
+#define newttentry() ((struct toptenentry *) alloc(sizeof(struct toptenentry)))
#define NAMSZ 8
#define DTHSZ 40
#define PERSMAX 1