summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/malloc_walk.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-05-16 12:09:56 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-05-16 12:38:21 +0200
commit502629707d8f28e2b1548ebdf03599612d7b6ef5 (patch)
tree553091f9bd23253f54ac6a0f607dace75718b0a2 /cpukit/libcsupport/src/malloc_walk.c
parentFilesystem: Add missing include file <stdint.h> (diff)
downloadrtems-502629707d8f28e2b1548ebdf03599612d7b6ef5.tar.bz2
libcsupport: Adjust malloc_walk() prototype
The header file <rtems/malloc.h> provides now also the malloc_walk() prototype. The malloc_walk() prototype reflects now the _Protected_heap_Walk() API. The return status helps to print only in case of an error.
Diffstat (limited to 'cpukit/libcsupport/src/malloc_walk.c')
-rw-r--r--cpukit/libcsupport/src/malloc_walk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/malloc_walk.c b/cpukit/libcsupport/src/malloc_walk.c
index 209d19bd6f..fa810888c9 100644
--- a/cpukit/libcsupport/src/malloc_walk.c
+++ b/cpukit/libcsupport/src/malloc_walk.c
@@ -18,9 +18,9 @@
#include <stdlib.h>
-void malloc_walk(size_t source, size_t printf_enabled)
+bool malloc_walk(int source, bool printf_enabled)
{
- _Protected_heap_Walk( RTEMS_Malloc_Heap, (int) source, printf_enabled );
+ return _Protected_heap_Walk( RTEMS_Malloc_Heap, source, printf_enabled );
}
#endif