diff options
author | Luca Dariz <luca@orpolo.org> | 2023-01-16 14:04:26 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-16 21:34:37 +0100 |
commit | 454868c3d2d978808b845352ea1483d0cea50190 (patch) | |
tree | a7ad72f56c8c7c555dbe8d910d2a1f89f81e6953 /ipc | |
parent | 6c91d04fbe4ddd798015724988a88b0043ddf1f9 (diff) | |
download | gnumach-454868c3d2d978808b845352ea1483d0cea50190.tar.gz gnumach-454868c3d2d978808b845352ea1483d0cea50190.tar.bz2 gnumach-454868c3d2d978808b845352ea1483d0cea50190.zip |
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>
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_kmsg.c | 3 | ||||
-rw-r--r-- | ipc/ipc_port.c | 2 |
2 files changed, 2 insertions, 3 deletions
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. diff --git a/ipc/ipc_port.c b/ipc/ipc_port.c index c593e8b3..c8bc0fb9 100644 --- a/ipc/ipc_port.c +++ b/ipc/ipc_port.c @@ -1283,7 +1283,7 @@ ipc_port_print(port) printf(", sndrs=0x%x", port->ip_blocked.ithq_base); printf(", kobj=0x%x\n", port->ip_kobject); - iprintf("protected_payload=%p\n", (void *) port->ip_protected_payload); + iprintf("protected_payload=%p\n", (void *) (vm_offset_t) port->ip_protected_payload); indent -= 2; } |