diff options
author | Jim Meyering <jim@meyering.net> | 2003-09-10 08:53:52 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-09-10 08:53:52 +0000 |
commit | fe6f9d5a665f84d5c3ab1297ee2517827a04bdf7 (patch) | |
tree | e0696b566beaf0d42045c69c0c1d1457914ba939 /lib | |
parent | 9ff401ebc95e5f691fade63b2ca5fc78c61c9c9c (diff) | |
download | coreutils-fe6f9d5a665f84d5c3ab1297ee2517827a04bdf7.tar.xz |
(rpl_realloc): Likewise. Also, define with a prototype.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/realloc.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/realloc.c b/lib/realloc.c index 573712108..ccbf99138 100644 --- a/lib/realloc.c +++ b/lib/realloc.c @@ -22,19 +22,14 @@ #endif #undef realloc -#include <stddef.h> - -char *malloc (); -char *realloc (); +#include <stdlib.h> /* 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; |