]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(rpl_realloc): Likewise. Also, define with a prototype.
authorJim Meyering <jim@meyering.net>
Wed, 10 Sep 2003 08:53:52 +0000 (08:53 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 10 Sep 2003 08:53:52 +0000 (08:53 +0000)
lib/realloc.c

index 573712108539416a8f8c7d4e39713d718983e8d7..ccbf991388e5010bb8399d016cdb57e5ac34ed2c 100644 (file)
 #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;