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

rpl_malloc returns void *, not char *.
This commit is contained in:
Jim Meyering committed 2003-09-10 08:53:42 +00:00
1 parent e1ddafb2f0
commit 9ff401ebc9
1 file changed
+2 -4
+2 -4
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)