summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorEric Biederman <ebiederm@xmission.com>2004-11-10 20:13:35 +0000
committerEric Biederman <ebiederm@xmission.com>2004-11-10 20:13:35 +0000
commit624252450f795242e2ef7fddc7adfceae4b2da4a (patch)
tree3b9a77ad98434b8315898a167a366d36c3869afa /src/lib
parent26e32760f90330c88e4b7ea84ff204e67d72196d (diff)
- Delete unused funciton realloc
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1776 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/malloc.c17
1 files changed, 0 insertions, 17 deletions
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 */