summaryrefslogtreecommitdiff
path: root/src/basic/mempool.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-02-14 13:42:03 +0100
committerLennart Poettering <lennart@poettering.net>2023-02-17 15:03:10 +0100
commit4392b983b8e765a25c7bf081c06e8ecc37425274 (patch)
tree393386f54a5cbbe6ec4c878a50cf9c9eb37a32b3 /src/basic/mempool.h
parent72381db942dd00f4d69b2d9a50156a62f2c350da (diff)
downloadsystemd-4392b983b8e765a25c7bf081c06e8ecc37425274.tar.gz
mempool: make mempool_free_tile() return NULL
To match how we usually do this current allocation code. (Also, make it accept a NULL pointer, also in order to match behaviour in the rest of our codebase)
Diffstat (limited to 'src/basic/mempool.h')
-rw-r--r--src/basic/mempool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/mempool.h b/src/basic/mempool.h
index 134e6cab17..6680ba3a9b 100644
--- a/src/basic/mempool.h
+++ b/src/basic/mempool.h
@@ -15,7 +15,7 @@ struct mempool {
void* mempool_alloc_tile(struct mempool *mp);
void* mempool_alloc0_tile(struct mempool *mp);
-void mempool_free_tile(struct mempool *mp, void *p);
+void* mempool_free_tile(struct mempool *mp, void *p);
#define DEFINE_MEMPOOL(pool_name, tile_type, alloc_at_least) \
static struct mempool pool_name = { \