summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-31 20:11:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-31 20:11:41 +0000
commit5efc97876bda6c9fe5d3bd48e3fa3f9cd4867a48 (patch)
tree08bd56826eafeeb4aee72965992e5b9517e522a5
parent0647cc743f4383b5562bac6c5d29c988ea5e0646 (diff)
downloadrtems-5efc97876bda6c9fe5d3bd48e3fa3f9cd4867a48.tar.bz2
2002-10-31 Joel Sherrill <joel@OARcorp.com>
* src/regiongetinfo.c: Corrected return value check.
-rw-r--r--cpukit/rtems/ChangeLog4
-rw-r--r--cpukit/rtems/src/regiongetinfo.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/rtems/ChangeLog b/cpukit/rtems/ChangeLog
index df4a52a4df..20822dff96 100644
--- a/cpukit/rtems/ChangeLog
+++ b/cpukit/rtems/ChangeLog
@@ -1,3 +1,7 @@
+2002-10-31 Joel Sherrill <joel@OARcorp.com>
+
+ * src/regiongetinfo.c: Corrected return value check.
+
2002-10-28 Joel Sherrill <joel@OARcorp.com>
* src/timerserver.c: Add useless return to avoid warning.
diff --git a/cpukit/rtems/src/regiongetinfo.c b/cpukit/rtems/src/regiongetinfo.c
index 2f7f21b72a..f2592dc9b4 100644
--- a/cpukit/rtems/src/regiongetinfo.c
+++ b/cpukit/rtems/src/regiongetinfo.c
@@ -62,7 +62,8 @@ rtems_status_code rtems_region_get_information(
case OBJECTS_LOCAL:
- if ( _Heap_Get_information( &the_region->Memory, the_info ) ) {
+ if ( _Heap_Get_information( &the_region->Memory, the_info ) ==
+ HEAP_GET_INFORMATION_SUCCESSFUL ) {
_RTEMS_Unlock_allocator();
return RTEMS_SUCCESSFUL;
}