]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include <stdlib.h>, for malloc; don't bother with stddef.h.
authorJim Meyering <jim@meyering.net>
Wed, 10 Sep 2003 08:53:42 +0000 (08:53 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 10 Sep 2003 08:53:42 +0000 (08:53 +0000)
rpl_malloc returns void *, not char *.

lib/malloc.c

index bcd6b564b07abf5d41a5d1faeca6ecb3aa6e29ae..a43d169271b733412ba2f8326fd7f7643de93869 100644 (file)
 #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)