diff options
-rw-r--r-- | ipc/ipc_kmsg.c | 3 | ||||
-rw-r--r-- | ipc/ipc_port.c | 2 | ||||
-rw-r--r-- | kern/pc_sample.c | 2 |
3 files changed, 3 insertions, 4 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; } diff --git a/kern/pc_sample.c b/kern/pc_sample.c index 280d8b54..d13beb07 100644 --- a/kern/pc_sample.c +++ b/kern/pc_sample.c @@ -61,7 +61,7 @@ void take_pc_sample( cp->seqno++; sample = &((sampled_pc_t *)cp->buffer)[cp->seqno % MAX_PC_SAMPLES]; - sample->id = (rpc_vm_offset_t)t; + sample->id = (rpc_vm_offset_t)(vm_offset_t)t; sample->pc = (rpc_vm_offset_t)pc; sample->sampletype = flavor; } |