From df4b9d64157159fa4cf18c3dbdcccab645bcabf9 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 31 Oct 2002 20:16:34 +0000 Subject: 2002-10-31 Joel Sherrill * src/mallocfreespace.c: Corrected sense of status check to match change inside RTEMS. * src/newlibc.c: Removed warning. --- cpukit/libcsupport/ChangeLog | 6 ++++++ cpukit/libcsupport/src/mallocfreespace.c | 2 +- cpukit/libcsupport/src/newlibc.c | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) (limited to 'cpukit') diff --git a/cpukit/libcsupport/ChangeLog b/cpukit/libcsupport/ChangeLog index 1639a13c2f..6a21486301 100644 --- a/cpukit/libcsupport/ChangeLog +++ b/cpukit/libcsupport/ChangeLog @@ -1,3 +1,9 @@ +2002-10-31 Joel Sherrill + + * src/mallocfreespace.c: Corrected sense of status check to + match change inside RTEMS. + * src/newlibc.c: Removed warning. + 2002-10-28 Joel Sherrill * include/rtems/libio.h: Change rtems_filesystem_node_types_t from diff --git a/cpukit/libcsupport/src/mallocfreespace.c b/cpukit/libcsupport/src/mallocfreespace.c index 26f4f34944..a533b86ad4 100644 --- a/cpukit/libcsupport/src/mallocfreespace.c +++ b/cpukit/libcsupport/src/mallocfreespace.c @@ -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; diff --git a/cpukit/libcsupport/src/newlibc.c b/cpukit/libcsupport/src/newlibc.c index 8c3836a1e7..97834c42e1 100644 --- a/cpukit/libcsupport/src/newlibc.c +++ b/cpukit/libcsupport/src/newlibc.c @@ -320,6 +320,7 @@ void _exit(int status) libc_wrapup(); rtems_shutdown_executive(status); + for (;;) ; /* to avoid warnings */ } #else @@ -328,6 +329,7 @@ void exit(int status) { libc_wrapup(); rtems_shutdown_executive(status); + for (;;) ; /* to avoid warnings */ } #endif -- cgit v1.2.3