commit a0b48ac77d2b5c7aa82c99f8524de9b3a5e07d76
parent d15bd7c02f30b612a2c2776f21209a6bc8fa00b9
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Thu, 13 Jun 2019 00:47:53 +0300
memorypool: minor macro and comment fixes
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git 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
@@ -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,