summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/realloc.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-17 18:37:55 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-17 18:37:55 +0000
commitbd5984deb79025a5ade18826ecdeb7eb05c3ccb4 (patch)
tree36e4cefb28300a8a42e85a55c4687c63693616c6 /cpukit/libcsupport/src/realloc.c
parent2008-09-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-bd5984deb79025a5ade18826ecdeb7eb05c3ccb4.tar.bz2
2008-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/free.c, libcsupport/src/malloc.c, libcsupport/src/malloc_initialize.c, libcsupport/src/malloc_p.h, libcsupport/src/malloc_sbrk_helpers.c, libcsupport/src/malloc_statistics_helpers.c, libcsupport/src/malloc_walk.c, libcsupport/src/mallocfreespace.c, libcsupport/src/mallocinfo.c, libcsupport/src/realloc.c, libcsupport/src/rtems_memalign.c, sapi/include/confdefs.h, score/inline/rtems/score/thread.inl: Add support for optionally having a unified work area. In other words, the RTEMS Workspace and C Program Heap are the same pool of memory.
Diffstat (limited to 'cpukit/libcsupport/src/realloc.c')
-rw-r--r--cpukit/libcsupport/src/realloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/realloc.c b/cpukit/libcsupport/src/realloc.c
index 745568c49d..9e96948994 100644
--- a/cpukit/libcsupport/src/realloc.c
+++ b/cpukit/libcsupport/src/realloc.c
@@ -54,7 +54,7 @@ void *realloc(
return (void *) 0;
}
- if ( !_Protected_heap_Get_block_size(&RTEMS_Malloc_Heap, ptr, &old_size) ) {
+ if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
errno = EINVAL;
return (void *) 0;
}
@@ -69,7 +69,7 @@ void *realloc(
resize += (*rtems_malloc_boundary_helpers->overhead)();
#endif
- if ( _Protected_heap_Resize_block( &RTEMS_Malloc_Heap, ptr, resize ) ) {
+ if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, resize ) ) {
#if defined(RTEMS_MALLOC_BOUNDARY_HELPERS)
/*
* Successful resize. Update the boundary on the same block.