cpukit/libdl/rtl-bit-alloc.c: Change false to NULL

This bug was caught when turning on --std=gnu2y on Microblaze.
This commit is contained in:
Joel Sherrill
2026-01-23 14:11:24 -06:00
parent 0975fe5f6c
commit ec711f1ae9
+2 -2
View File
@@ -151,13 +151,13 @@ rtems_rtl_bit_alloc_open (void* base, size_t size, size_t block_size, size_t use
if (size == 0)
{
rtems_rtl_set_error (ENOMEM, "bit allocator size is 0");
return false;
return NULL;
}
if (used > size)
{
rtems_rtl_set_error (ENOMEM, "bad bit allocator used value");
return false;
return NULL;
}
balloc = rtems_rtl_alloc_new (RTEMS_RTL_ALLOC_OBJECT,