libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 0df53809e3547a196dbe07a47ce38b33ad58ce69
parent 5c591ebf9bac6f099653682f532d41b9883d7284
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Sun,  1 Mar 2026 15:14:33 +0100

mempool_funcs: removed incorrect function attribute

When resizing allocation the returned address could be unaligned if
resized in-place and allocation address has offset from initial
allocation address.

Diffstat:
Msrc/mhd2/mempool_funcs.c | 2+-
Msrc/mhd2/mempool_funcs.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mhd2/mempool_funcs.c b/src/mhd2/mempool_funcs.c @@ -525,7 +525,7 @@ mhd_pool_try_alloc (struct mhd_MemoryPool *restrict pool, MHD_INTERNAL -mhd_FN_RET_SIZED (4) mhd_FN_RET_ALIGNED (mhd_MEMPOOL_ALIGN_SIZE) +mhd_FN_RET_SIZED (4) void * mhd_pool_reallocate (struct mhd_MemoryPool *restrict pool, void *restrict old, diff --git a/src/mhd2/mempool_funcs.h b/src/mhd2/mempool_funcs.h @@ -181,7 +181,7 @@ mhd_pool_reallocate (struct mhd_MemoryPool *restrict pool, void *restrict old, size_t old_size, size_t new_size) -mhd_FN_RET_SIZED (4) mhd_FN_RET_ALIGNED (mhd_MEMPOOL_ALIGN_SIZE); +mhd_FN_RET_SIZED (4); /** * Get the size of the memory pool