From: Jim Meyering Date: Wed, 10 Sep 2003 08:53:42 +0000 (+0000) Subject: Include , for malloc; don't bother with stddef.h. X-Git-Tag: v5.1.0~759 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ff401ebc95e5f691fade63b2ca5fc78c61c9c9c;p=thirdparty%2Fcoreutils.git Include , for malloc; don't bother with stddef.h. rpl_malloc returns void *, not char *. --- diff --git a/lib/malloc.c b/lib/malloc.c index bcd6b564b0..a43d169271 100644 --- a/lib/malloc.c +++ b/lib/malloc.c @@ -22,14 +22,12 @@ #endif #undef malloc -#include - -char *malloc (); +#include /* 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)