diff options
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; } |