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 /src/microhttpd/memorypool.c | |
parent | d15bd7c02f30b612a2c2776f21209a6bc8fa00b9 (diff) | |
download | libmicrohttpd-a0b48ac77d2b5c7aa82c99f8524de9b3a5e07d76.tar.gz libmicrohttpd-a0b48ac77d2b5c7aa82c99f8524de9b3a5e07d76.zip |
memorypool: minor macro and comment fixes
Diffstat (limited to 'src/microhttpd/memorypool.c')
-rw-r--r-- | src/microhttpd/memorypool.c | 4 |
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 |