mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 11:21:00 +08:00
2002-10-31 Joel Sherrill <joel@OARcorp.com>
* src/mallocfreespace.c: Corrected sense of status check to match change inside RTEMS. * src/newlibc.c: Removed warning.
This commit is contained in:
@@ -37,7 +37,7 @@ size_t malloc_free_space( void )
|
||||
{
|
||||
region_information_block heap_info;
|
||||
|
||||
if ( rtems_region_get_information( RTEMS_Malloc_Heap, &heap_info ) ) {
|
||||
if ( !rtems_region_get_information( RTEMS_Malloc_Heap, &heap_info ) ) {
|
||||
return (size_t) heap_info.free_size;
|
||||
}
|
||||
return (size_t) -1;
|
||||
|
||||
Reference in New Issue
Block a user