diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-06-13 00:47:53 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-06-13 01:01:32 +0300 |
commit | a0b48ac77d2b5c7aa82c99f8524de9b3a5e07d76 (patch) | |
tree | 94f2188cf049830d3c86c1f115e072e20ead0d33 | |
parent | d15bd7c02f30b612a2c2776f21209a6bc8fa00b9 (diff) |
memorypool: minor macro and comment fixes
-rw-r--r-- | src/microhttpd/memorypool.c | 4 | ||||
-rw-r--r-- | src/microhttpd/memorypool.h | 6 |
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 @@ /** * Round up 'n' to a multiple of ALIGN_SIZE. */ -#define ROUND_TO_ALIGN(n) ((n+(ALIGN_SIZE-1)) & (~(ALIGN_SIZE-1))) +#define ROUND_TO_ALIGN(n) (((n)+(ALIGN_SIZE-1)) & (~(ALIGN_SIZE-1))) /** @@ -241,7 +241,7 @@ MHD_pool_allocate (struct MemoryPool *pool, * If the given block is not the most recently * (re)allocated block, the memory of the previous * allocation may be leaked until the pool is - * destroyed (and copying the data maybe required). + * destroyed or reset. * * @param pool memory pool to use for the operation * @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, * If the given block is not the most recently * (re)allocated block, the memory of the previous * allocation may be leaked until the pool is - * destroyed (and copying the data maybe required). + * destroyed or reset. * * @param pool memory pool to use for the operation * @param old the existing block * @param old_size the size of the existing block * @param new_size the new size of the block * @return new address of the block, or - * NULL if the pool cannot support new_size - * bytes (old continues to be valid for old_size) + * NULL if the pool cannot support @a new_size + * bytes (old continues to be valid for @a old_size) */ void * MHD_pool_reallocate (struct MemoryPool *pool, |