X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Frealloc.c;h=ccbf991388e5010bb8399d016cdb57e5ac34ed2c;hb=0c363304f645105a776fac77223e218e7b8f41e0;hp=2a39033a73f87ceedcb3d7476a36db06f19c9eee;hpb=2088d1000c3b20b9a905f6b39f1c1393aa3590b9;p=gnulib.git diff --git a/lib/realloc.c b/lib/realloc.c index 2a39033a7..ccbf99138 100644 --- a/lib/realloc.c +++ b/lib/realloc.c @@ -1,5 +1,5 @@ -/* Work around bug on some systems where realloc (NULL, n) fails. - Copyright (C) 1997 Free Software Foundation, Inc. +/* Work around bug on some systems where realloc (NULL, 0) fails. + Copyright (C) 1997, 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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;