summaryrefslogtreecommitdiff
path: root/lib/realloc.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-10 08:53:52 +0000
committerJim Meyering <jim@meyering.net>2003-09-10 08:53:52 +0000
commitfe6f9d5a665f84d5c3ab1297ee2517827a04bdf7 (patch)
treee0696b566beaf0d42045c69c0c1d1457914ba939 /lib/realloc.c
parent9ff401ebc95e5f691fade63b2ca5fc78c61c9c9c (diff)
downloadcoreutils-fe6f9d5a665f84d5c3ab1297ee2517827a04bdf7.tar.xz
(rpl_realloc): Likewise. Also, define with a prototype.
Diffstat (limited to 'lib/realloc.c')
-rw-r--r--lib/realloc.c11
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;