diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2022-06-03 00:50:12 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2022-06-03 00:50:12 +0200 |
| commit | 7ae36a21d031c3d71e9015823c61380f88b0595d (patch) | |
| tree | 8fb619e30b5a7f03f7b7416343ab796f53d74aec /src_c/pool.c | |
| parent | c81812414c1b55352aac2c9bdc9b7f4951f2c6ce (diff) | |
requirements update
Diffstat (limited to 'src_c/pool.c')
| -rw-r--r-- | src_c/pool.c | 8 |
1 files changed, 3 insertions, 5 deletions
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; |
