libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 79c6f9d5246e941cadcb293fb88962e3cbee4c01
parent da42f22c64357179f3869594ca4001c7525a2a1f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Wed,  5 Apr 2023 14:04:52 +0300

memorypool: cosmetics

Diffstat:
Msrc/microhttpd/memorypool.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c @@ -106,13 +106,13 @@ * Boolean 'true' if the first pointer is less or equal the second pointer */ #define mp_ptr_le_(p1,p2) \ - (((const uint8_t*)p1) <= ((const uint8_t*)p2)) + (((const uint8_t*)(p1)) <= ((const uint8_t*)(p2))) /** * The difference in bytes between positions of the first and * the second pointers */ #define mp_ptr_diff_(p1,p2) \ - ((size_t)(((const uint8_t*)p1) - ((const uint8_t*)p2))) + ((size_t)(((const uint8_t*)(p1)) - ((const uint8_t*)(p2)))) #else /* MHD_ASAN_POISON_ACTIVE */ #define _MHD_RED_ZONE_SIZE (ALIGN_SIZE) #define ROUND_TO_ALIGN_PLUS_RED_ZONE(n) (ROUND_TO_ALIGN(n) + _MHD_RED_ZONE_SIZE) @@ -131,8 +131,8 @@ * the second pointers */ #define mp_ptr_diff_(p1,p2) \ - ((size_t)(((uintptr_t)((const uint8_t*)p1)) - \ - ((uintptr_t)((const uint8_t*)p2)))) + ((size_t)(((uintptr_t)((const uint8_t*)(p1))) - \ + ((uintptr_t)((const uint8_t*)(p2))))) #elif defined(FUNC_ATTR_PTRCOMPARE_WORKS) && \ defined(FUNC_ATTR_PTRSUBTRACT_WORKS) #ifdef _DEBUG