From 7ae36a21d031c3d71e9015823c61380f88b0595d Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Fri, 3 Jun 2022 00:50:12 +0200 Subject: requirements update --- src_c/pool.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src_c/pool.c') diff --git a/src_c/pool.c b/src_c/pool.c index 7e2bd02..4bd8250 100644 --- a/src_c/pool.c +++ b/src_c/pool.c @@ -25,10 +25,8 @@ static void allocate_block(opcut_pool_t *pool) { items_per_block = 1; header_t *block = hat_allocator_alloc( - pool->a, - sizeof(header_t) + - items_per_block * (sizeof(header_t) + pool->item_size), - NULL); + pool->a, sizeof(header_t) + + items_per_block * (sizeof(header_t) + pool->item_size)); if (!block) return; block->next = pool->blocks; @@ -44,7 +42,7 @@ static void allocate_block(opcut_pool_t *pool) { opcut_pool_t *opcut_pool_create(hat_allocator_t *a, size_t item_size) { - opcut_pool_t *pool = hat_allocator_alloc(a, sizeof(opcut_pool_t), NULL); + opcut_pool_t *pool = hat_allocator_alloc(a, sizeof(opcut_pool_t)); if (!pool) return NULL; -- cgit v1.2.3-70-g09d2