summaryrefslogtreecommitdiff
path: root/lib/malloc.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-10 08:53:42 +0000
committerJim Meyering <jim@meyering.net>2003-09-10 08:53:42 +0000
commit9ff401ebc95e5f691fade63b2ca5fc78c61c9c9c (patch)
treec73570b4dde4088ebfcb18c295ef1e01019385ea /lib/malloc.c
parente1ddafb2f032c7536d864a67bd9221f4e2c814fe (diff)
downloadcoreutils-9ff401ebc95e5f691fade63b2ca5fc78c61c9c9c.tar.xz
Include <stdlib.h>, for malloc; don't bother with stddef.h.
rpl_malloc returns void *, not char *.
Diffstat (limited to 'lib/malloc.c')
-rw-r--r--lib/malloc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/malloc.c b/lib/malloc.c
index bcd6b564b..a43d16927 100644
--- a/lib/malloc.c
+++ b/lib/malloc.c
@@ -22,14 +22,12 @@
#endif
#undef malloc
-#include <stddef.h>
-
-char *malloc ();
+#include <stdlib.h>
/* Allocate an N-byte block of memory from the heap.
If N is zero, allocate a 1-byte block. */
-char *
+void *
rpl_malloc (size_t n)
{
if (n == 0)