aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mempool.c2
-rw-r--r--src/common/mempool.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/mempool.c b/src/common/mempool.c
index b3c3752531..06f23ad94f 100644
--- a/src/common/mempool.c
+++ b/src/common/mempool.c
@@ -329,7 +329,7 @@ mp_pool_release(void *item)
}
/** Allocate a new memory pool to hold items of size <b>item_size</b>. We'll
- * try to fit about <b>chunk_capacity</b> items in each chunk. */
+ * try to fit about <b>chunk_capacity</b> bytes in each chunk. */
mp_pool_t *
mp_pool_new(size_t item_size, size_t chunk_capacity)
{
diff --git a/src/common/mempool.h b/src/common/mempool.h
index a1bc3bd0d1..1f9e2f5534 100644
--- a/src/common/mempool.h
+++ b/src/common/mempool.h
@@ -17,7 +17,7 @@ typedef struct mp_pool_t mp_pool_t;
void *mp_pool_get(mp_pool_t *pool);
void mp_pool_release(void *item);
-mp_pool_t *mp_pool_new(size_t item_size, unsigned int n_per_chunk);
+mp_pool_t *mp_pool_new(size_t item_size, size_t chunk_capacity);
void mp_pool_clean(mp_pool_t *pool, int n);
void mp_pool_destroy(mp_pool_t *pool);
void mp_pool_assert_ok(mp_pool_t *pool);