From c6fb30a04df6455ae225f6ccf437f5eb907f1a2b Mon Sep 17 00:00:00 2001 From: Luca Dariz Date: Tue, 28 Jun 2022 12:10:41 +0200 Subject: simplify ipc_kmsg_copyout_body() usage * ipc/ipc_kmsg.h: change prototype of ipc_kmsg_copyout_body() * ipc/ipc_kmsg.c: change prototype and usage of ipc_kmsg_copyout_body() by incorporating common code * ipc/mach_msg.c: change usage of ipc_kmsg_copyout_body() Signed-off-by: Luca Dariz Message-Id: <20220628101054.446126-3-luca@orpolo.org> --- ipc/mach_msg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ipc/mach_msg.c') diff --git a/ipc/mach_msg.c b/ipc/mach_msg.c index fe0c43e3..0ae8fe0c 100644 --- a/ipc/mach_msg.c +++ b/ipc/mach_msg.c @@ -1148,9 +1148,7 @@ mach_msg_trap( kmsg->ikm_header.msgh_remote_port = MACH_PORT_NULL; mr = ipc_kmsg_copyout_body( - (vm_offset_t) (&kmsg->ikm_header + 1), - (vm_offset_t) &kmsg->ikm_header - + kmsg->ikm_header.msgh_size, + kmsg, space, current_map()); -- cgit v1.2.3