From f67b21c9ea33de6070de851762fb84b002ae523b Mon Sep 17 00:00:00 2001 From: Florian Lohoff Date: Sat, 4 Oct 2008 13:04:53 +0000 Subject: Remove arc from the malloc function names --- common/stdlib.c | 2 +- common/stdlib.h | 2 +- ext2load/loader.c | 2 +- tip22/tftpload.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/stdlib.c b/common/stdlib.c index 1d3355a..33cc07d 100644 --- a/common/stdlib.c +++ b/common/stdlib.c @@ -107,7 +107,7 @@ void *realloc(void *ptr, size_t size) } -void arclib_malloc_add(unsigned long start, unsigned long size) +void malloc_area_add(unsigned long start, unsigned long size) { Node *node = (Node *) start; diff --git a/common/stdlib.h b/common/stdlib.h index 8bd1e8b..5e690b0 100644 --- a/common/stdlib.h +++ b/common/stdlib.h @@ -10,6 +10,6 @@ extern void *malloc(size_t size); extern void free(void *ptr); extern void *realloc(void *ptr, size_t size); -extern void arclib_malloc_add(unsigned long start, unsigned long size); +extern void malloc_area_add(unsigned long start, unsigned long size); #endif /* _STDLIB_H_ */ diff --git a/ext2load/loader.c b/ext2load/loader.c index 2b1192f..75fa4cc 100644 --- a/ext2load/loader.c +++ b/ext2load/loader.c @@ -122,7 +122,7 @@ void InitMalloc(void) printf("Adding %lu bytes at 0x%lx to the list of available memory\n\r", end-start, start); #endif - arclib_malloc_add(start, end - start); + malloc_area_add(start, end - start); } } current = ArcGetMemoryDescriptor(current); diff --git a/tip22/tftpload.c b/tip22/tftpload.c index 37ca7d1..36465bf 100644 --- a/tip22/tftpload.c +++ b/tip22/tftpload.c @@ -109,7 +109,7 @@ static void InitMalloc(void) printf("Adding %lu bytes at 0x%lx to the list of available memory\n\r", end-start, start); #endif - arclib_malloc_add(start, end - start); + malloc_area_add(start, end - start); } } current = ArcGetMemoryDescriptor(current); -- cgit v1.2.3