From: Jim Meyering Date: Wed, 10 Sep 2003 08:53:52 +0000 (+0000) Subject: (rpl_realloc): Likewise. Also, define with a prototype. X-Git-Tag: v5.1.0~758 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe6f9d5a665f84d5c3ab1297ee2517827a04bdf7;p=thirdparty%2Fcoreutils.git (rpl_realloc): Likewise. Also, define with a prototype. --- diff --git a/lib/realloc.c b/lib/realloc.c index 5737121085..ccbf991388 100644 --- a/lib/realloc.c +++ b/lib/realloc.c @@ -22,19 +22,14 @@ #endif #undef realloc -#include - -char *malloc (); -char *realloc (); +#include /* Change the size of an allocated block of memory P to N bytes, with error checking. If N is zero, change it to 1. If P is NULL, use malloc. */ -char * -rpl_realloc (p, n) - char *p; - size_t n; +void * +rpl_realloc (void *p, size_t n) { if (n == 0) n = 1;