From fe6f9d5a665f84d5c3ab1297ee2517827a04bdf7 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 10 Sep 2003 08:53:52 +0000 Subject: [PATCH] (rpl_realloc): Likewise. Also, define with a prototype. --- lib/realloc.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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; -- 2.47.2