summaryrefslogtreecommitdiffstats
path: root/cpukit/libdl/rtl-alloc-heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libdl/rtl-alloc-heap.c')
-rw-r--r--cpukit/libdl/rtl-alloc-heap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libdl/rtl-alloc-heap.c b/cpukit/libdl/rtl-alloc-heap.c
index 2483e89fed..4ffdaf23b1 100644
--- a/cpukit/libdl/rtl-alloc-heap.c
+++ b/cpukit/libdl/rtl-alloc-heap.c
@@ -18,14 +18,14 @@
#include "rtl-alloc-heap.h"
void
-rtems_rtl_alloc_heap (bool allocate,
+rtems_rtl_alloc_heap (rtems_rtl_alloc_cmd cmd,
rtems_rtl_alloc_tag tag,
void** address,
size_t size)
{
- if (allocate)
+ if (cmd == RTEMS_RTL_ALLOC_NEW)
*address = malloc (size);
- else
+ else if (cmd == RTEMS_RTL_ALLOC_DEL)
{
free (*address);
*address = NULL;