git: 6bb7f05850ef - main - rtld_malloc.c: change return type of cp2op() to void

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 21 Aug 2023 14:17:15 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=6bb7f05850efceb01a7050e3c0fd86f9539c0071

commit 6bb7f05850efceb01a7050e3c0fd86f9539c0071
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-07-30 01:58:01 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-08-21 14:16:42 +0000

    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
---
 libexec/rtld-elf/rtld_malloc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libexec/rtld-elf/rtld_malloc.c b/libexec/rtld-elf/rtld_malloc.c
index 3437f638d339..1246238b3941 100644
--- a/libexec/rtld-elf/rtld_malloc.c
+++ b/libexec/rtld-elf/rtld_malloc.c
@@ -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 *