rtld_malloc.c: change return type of cp2op() to void

for it to be useful to return unaligned pointer.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D41150
This commit is contained in:
Konstantin Belousov 2023-07-30 04:58:01 +03:00
parent 3c872a70b8
commit 6bb7f05850

View file

@ -106,10 +106,10 @@ static int pagesz; /* page size */
* increasing order.
*/
static union overhead *
static void *
cp2op(void *cp)
{
return ((union overhead *)((caddr_t)cp - sizeof(union overhead)));
return (((caddr_t)cp - sizeof(union overhead)));
}
void *