aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/memorypool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/memorypool.c')
-rw-r--r--src/microhttpd/memorypool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c
index e3de5841..3746eb71 100644
--- a/src/microhttpd/memorypool.c
+++ b/src/microhttpd/memorypool.c
@@ -54,7 +54,7 @@
54/** 54/**
55 * Round up 'n' to a multiple of ALIGN_SIZE. 55 * Round up 'n' to a multiple of ALIGN_SIZE.
56 */ 56 */
57#define ROUND_TO_ALIGN(n) ((n+(ALIGN_SIZE-1)) & (~(ALIGN_SIZE-1))) 57#define ROUND_TO_ALIGN(n) (((n)+(ALIGN_SIZE-1)) & (~(ALIGN_SIZE-1)))
58 58
59 59
60/** 60/**
@@ -241,7 +241,7 @@ MHD_pool_allocate (struct MemoryPool *pool,
241 * If the given block is not the most recently 241 * If the given block is not the most recently
242 * (re)allocated block, the memory of the previous 242 * (re)allocated block, the memory of the previous
243 * allocation may be leaked until the pool is 243 * allocation may be leaked until the pool is
244 * destroyed (and copying the data maybe required). 244 * destroyed or reset.
245 * 245 *
246 * @param pool memory pool to use for the operation 246 * @param pool memory pool to use for the operation
247 * @param old the existing block 247 * @param old the existing block