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.
This commit is contained in:
Sebastian Huber
2012-05-16 12:09:56 +02:00
parent e37ed99c99
commit 502629707d
5 changed files with 14 additions and 13 deletions

View File

@@ -34,7 +34,7 @@ void RTEMS_Malloc_Initialize(
);
extern void malloc_dump(void);
extern void malloc_walk(size_t source, size_t printf_enabled);
extern bool malloc_walk(int source, bool printf_enabled);
void malloc_set_heap_pointer(Heap_Control *new_heap);
Heap_Control *malloc_get_heap_pointer( void );
extern void libc_init(void);

View File

@@ -18,6 +18,7 @@
#include <rtems.h>
#include <rtems/bspIo.h>
#include <rtems/libcsupport.h> /* for malloc_walk() */
#include <stdint.h>