summaryrefslogtreecommitdiff
path: root/lib/realloc.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2003-09-09 21:46:50 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2003-09-09 21:46:50 +0000
commit16271524e244ae459ad147f9511c49c2efcf3498 (patch)
tree123a77a937b43731b831fd0a5c6385b5e106fd09 /lib/realloc.c
parent9fa0213b0a9c3b706fdb58221bf0648bfff48ff5 (diff)
downloadgnulib-16271524e244ae459ad147f9511c49c2efcf3498.tar.gz
Remove K&R cruft.
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 5737121085..ccbf991388 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;