aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/memorypool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/memorypool.h')
-rw-r--r--src/daemon/memorypool.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/daemon/memorypool.h b/src/daemon/memorypool.h
index f7704cf5..7f53cba5 100644
--- a/src/daemon/memorypool.h
+++ b/src/daemon/memorypool.h
@@ -39,7 +39,7 @@ struct MemoryPool;
39 39
40/** 40/**
41 * Create a memory pool. 41 * Create a memory pool.
42 * 42 *
43 * @param max maximum size of the pool 43 * @param max maximum size of the pool
44 */ 44 */
45struct MemoryPool *MHD_pool_create (unsigned int max); 45struct MemoryPool *MHD_pool_create (unsigned int max);
@@ -65,16 +65,16 @@ void *MHD_pool_allocate (struct MemoryPool *pool,
65 * Reallocate a block of memory obtained from the pool. 65 * Reallocate a block of memory obtained from the pool.
66 * This is particularly efficient when growing or 66 * This is particularly efficient when growing or
67 * shrinking the block that was last (re)allocated. 67 * shrinking the block that was last (re)allocated.
68 * If the given block is not the most recenlty 68 * If the given block is not the most recenlty
69 * (re)allocated block, the memory of the previous 69 * (re)allocated block, the memory of the previous
70 * allocation may be leaked until the pool is 70 * allocation may be leaked until the pool is
71 * destroyed (and copying the data maybe required). 71 * destroyed (and copying the data maybe required).
72 * 72 *
73 * @param old the existing block 73 * @param old the existing block
74 * @param old_size the size of the existing block 74 * @param old_size the size of the existing block
75 * @param new_size the new size of the block 75 * @param new_size the new size of the block
76 * @return new address of the block, or 76 * @return new address of the block, or
77 * NULL if the pool cannot support new_size 77 * NULL if the pool cannot support new_size
78 * bytes (old continues to be valid for old_size) 78 * bytes (old continues to be valid for old_size)
79 */ 79 */
80void *MHD_pool_reallocate (struct MemoryPool *pool, 80void *MHD_pool_reallocate (struct MemoryPool *pool,