From 454868c3d2d978808b845352ea1483d0cea50190 Mon Sep 17 00:00:00 2001 From: Luca Dariz Date: Mon, 16 Jan 2023 14:04:26 +0100 Subject: fix warnings * ipc/ipc_kmsg.c: drop useless cast. * ipc/ipc_port.c: upcast rpc_vm_offset_t to full vm_offset_t * kern/pc_sample.c: Likewise Message-Id: <20230116130426.246584-4-luca@orpolo.org> --- ipc/ipc_kmsg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ipc/ipc_kmsg.c') diff --git a/ipc/ipc_kmsg.c b/ipc/ipc_kmsg.c index 62e138c7..efa5a124 100644 --- a/ipc/ipc_kmsg.c +++ b/ipc/ipc_kmsg.c @@ -2425,8 +2425,7 @@ ipc_kmsg_copyout_body( /* copyout port rights carried in the message */ for (i = 0; i < number; i++) { - ipc_object_t object = - (ipc_object_t) objects[i]; + ipc_object_t object = objects[i]; /* TODO: revisit this for 64 bits since the size of * mach_port_name_t is not the same as a pointer size. -- cgit v1.2.3