diff options
author | Jim Meyering <jim@meyering.net> | 2003-09-10 08:53:42 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-09-10 08:53:42 +0000 |
commit | 9ff401ebc95e5f691fade63b2ca5fc78c61c9c9c (patch) | |
tree | c73570b4dde4088ebfcb18c295ef1e01019385ea /lib | |
parent | e1ddafb2f032c7536d864a67bd9221f4e2c814fe (diff) | |
download | coreutils-9ff401ebc95e5f691fade63b2ca5fc78c61c9c9c.tar.xz |
Include <stdlib.h>, for malloc; don't bother with stddef.h.
rpl_malloc returns void *, not char *.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/malloc.c | 6 |
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) |