aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-06-13 00:47:53 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-06-13 01:01:32 +0300
commita0b48ac77d2b5c7aa82c99f8524de9b3a5e07d76 (patch)
tree94f2188cf049830d3c86c1f115e072e20ead0d33
parentd15bd7c02f30b612a2c2776f21209a6bc8fa00b9 (diff)
downloadlibmicrohttpd-a0b48ac77d2b5c7aa82c99f8524de9b3a5e07d76.tar.gz
libmicrohttpd-a0b48ac77d2b5c7aa82c99f8524de9b3a5e07d76.zip
memorypool: minor macro and comment fixes
-rw-r--r--src/microhttpd/memorypool.c4
-rw-r--r--src/microhttpd/memorypool.h6
2 files changed, 5 insertions, 5 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
diff --git a/src/microhttpd/memorypool.h b/src/microhttpd/memorypool.h
index 79b10e73..c5fe7ada 100644
--- a/src/microhttpd/memorypool.h
+++ b/src/microhttpd/memorypool.h
@@ -87,15 +87,15 @@ MHD_pool_allocate (struct MemoryPool *pool,
87 * If the given block is not the most recently 87 * If the given block is not the most recently
88 * (re)allocated block, the memory of the previous 88 * (re)allocated block, the memory of the previous
89 * allocation may be leaked until the pool is 89 * allocation may be leaked until the pool is
90 * destroyed (and copying the data maybe required). 90 * destroyed or reset.
91 * 91 *
92 * @param pool memory pool to use for the operation 92 * @param pool memory pool to use for the operation
93 * @param old the existing block 93 * @param old the existing block
94 * @param old_size the size of the existing block 94 * @param old_size the size of the existing block
95 * @param new_size the new size of the block 95 * @param new_size the new size of the block
96 * @return new address of the block, or 96 * @return new address of the block, or
97 * NULL if the pool cannot support new_size 97 * NULL if the pool cannot support @a new_size
98 * bytes (old continues to be valid for old_size) 98 * bytes (old continues to be valid for @a old_size)
99 */ 99 */
100void * 100void *
101MHD_pool_reallocate (struct MemoryPool *pool, 101MHD_pool_reallocate (struct MemoryPool *pool,