Date: Mon, 21 Aug 2023 14:17:15 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 6bb7f05850ef - main - rtld_malloc.c: change return type of cp2op() to void Message-ID: <202308211417.37LEHF7x097354@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 *
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308211417.37LEHF7x097354>