diff options
Diffstat (limited to 'cpukit/score/src/pheapextend.c')
-rw-r--r-- | cpukit/score/src/pheapextend.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/src/pheapextend.c b/cpukit/score/src/pheapextend.c index c2aa9735b9..e71fb1bd8c 100644 --- a/cpukit/score/src/pheapextend.c +++ b/cpukit/score/src/pheapextend.c @@ -30,12 +30,12 @@ bool _Protected_heap_Extend( uintptr_t size ) { - Heap_Extend_status status; - uintptr_t amount_extended; + bool extend_ok; + uintptr_t amount_extended; _RTEMS_Lock_allocator(); - status = _Heap_Extend(the_heap, starting_address, size, &amount_extended); + extend_ok = _Heap_Extend(the_heap, starting_address, size, &amount_extended); _RTEMS_Unlock_allocator(); - return (status == HEAP_EXTEND_SUCCESSFUL); + return extend_ok; } |