From 502629707d8f28e2b1548ebdf03599612d7b6ef5 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 16 May 2012 12:09:56 +0200 Subject: libcsupport: Adjust malloc_walk() prototype The header file 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. --- cpukit/libcsupport/src/malloc_walk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/libcsupport/src/malloc_walk.c') 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 -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 -- cgit v1.2.3