mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 10:19:04 +00:00
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:
parent
3c872a70b8
commit
6bb7f05850
|
@ -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 *
|
||||
|
|
Loading…
Reference in a new issue