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:
Joel Sherrill
2002-10-31 20:16:34 +00:00
parent 2ea9395740
commit df4b9d6415
3 changed files with 9 additions and 1 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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