1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-21 23:02:05 +02:00

Include <stdlib.h>, for malloc; don't bother with stddef.h.

rpl_malloc returns void *, not char *.
This commit is contained in:
Jim Meyering
2003-09-10 08:53:42 +00:00
parent e1ddafb2f0
commit 9ff401ebc9

View File

@@ -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)