diff options
author | dholland <dholland@NetBSD.org> | 2011-08-06 20:18:26 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2011-08-06 20:18:26 +0000 |
commit | 9454bf2a02784b7f28fbab922d3d8b56b2193786 (patch) | |
tree | a5acc680f74543e2bb47b6067344e7e9e5759f5d /hack/extern.h | |
parent | a96166e2f80ef376b0a2cdea16f09df48fe56d8c (diff) | |
download | bsdgames-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/extern.h')
-rw-r--r-- | hack/extern.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hack/extern.h b/hack/extern.h index a6ac46d2..32bd5098 100644 --- a/hack/extern.h +++ b/hack/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.15 2011/08/06 20:00:33 dholland Exp $ */ +/* $NetBSD: extern.h,v 1.16 2011/08/06 20:18:26 dholland Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ #include <stdio.h> /* alloc.c */ -long *alloc(unsigned); +void *alloc(size_t); /* hack.apply.c */ int doapply(void); |