summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libc/malloc.c')
-rw-r--r--c/src/lib/libc/malloc.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/c/src/lib/libc/malloc.c b/c/src/lib/libc/malloc.c
index db408ec050..fac38585a7 100644
--- a/c/src/lib/libc/malloc.c
+++ b/c/src/lib/libc/malloc.c
@@ -387,7 +387,7 @@ void malloc_walk(size_t source, size_t printf_enabled)
*/
#ifdef RTEMS_NEWLIB
-void *malloc_r(
+void *_malloc_r(
struct _reent *ignored,
size_t size
)
@@ -395,7 +395,8 @@ void *malloc_r(
return malloc( size );
}
-void *calloc_r(
+void *_calloc_r(
+ struct _reent *ignored,
size_t nelem,
size_t elsize
)
@@ -403,15 +404,17 @@ void *calloc_r(
return calloc( nelem, elsize );
}
-void *realloc_r(
+void *_realloc_r(
+ struct _reent *ignored,
void *ptr,
size_t size
)
{
- return realloc_r( ptr, size );
+ return realloc( ptr, size );
}
-void free_r(
+void _free_r(
+ struct _reent *ignored,
void *ptr
)
{