summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-31 20:16:34 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-31 20:16:34 +0000
commitdf4b9d64157159fa4cf18c3dbdcccab645bcabf9 (patch)
treeb6dc2833974d7c4c960de4192d694c9cd8e37b9c
parent2ea9395740a0828171af0a8a9a3664228a540d11 (diff)
downloadrtems-df4b9d64157159fa4cf18c3dbdcccab645bcabf9.tar.bz2
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.
-rw-r--r--cpukit/libcsupport/ChangeLog6
-rw-r--r--cpukit/libcsupport/src/mallocfreespace.c2
-rw-r--r--cpukit/libcsupport/src/newlibc.c2
3 files changed, 9 insertions, 1 deletions
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 <joel@OARcorp.com>
+
+ * src/mallocfreespace.c: Corrected sense of status check to
+ match change inside RTEMS.
+ * src/newlibc.c: Removed warning.
+
2002-10-28 Joel Sherrill <joel@OARcorp.com>
* 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