summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/stdlib.h1
-rw-r--r--src/lib/malloc.c17
2 files changed, 0 insertions, 18 deletions
diff --git a/src/include/stdlib.h b/src/include/stdlib.h
index 8d37b39beb..eb67d20fe7 100644
--- a/src/include/stdlib.h
+++ b/src/include/stdlib.h
@@ -4,7 +4,6 @@
#include <stddef.h>
extern void *malloc(size_t size);
-extern void *realloc(void *mem, size_t size);
void free(void *ptr);
/* Extensions to malloc... */
diff --git a/src/lib/malloc.c b/src/lib/malloc.c
index 99a7b614fb..5364e4cf22 100644
--- a/src/lib/malloc.c
+++ b/src/lib/malloc.c
@@ -47,23 +47,6 @@ void *malloc(size_t size)
return p;
}
-void *realloc(void *mem, size_t size)
-{
- void *new_mem;
-
- if (mem == 0)
- return malloc(size);
- if (size == 0) {
- free(mem);
- return 0;
- }
-
- new_mem = malloc(size);
- memcpy(new_mem, mem, size);
- free(mem);
- return new_mem;
-}
-
void free(void *where)
{
/* Don't care */