diff options
Diffstat (limited to 'kern')
-rw-r--r-- | kern/bootstrap.c | 2 | ||||
-rw-r--r-- | kern/exception.c | 2 | ||||
-rw-r--r-- | kern/ipc_tt.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/kern/bootstrap.c b/kern/bootstrap.c index ac95393..235aa7b 100644 --- a/kern/bootstrap.c +++ b/kern/bootstrap.c @@ -435,7 +435,7 @@ read_exec(void *handle, vm_offset_t file_ofs, vm_size_t file_size, if (file_size > 0) { err = copyout((char *)phystokv (mod->mod_start) + file_ofs, - mem_addr, file_size); + (void *)mem_addr, file_size); assert(err == 0); } diff --git a/kern/exception.c b/kern/exception.c index 258fedf..453a075 100644 --- a/kern/exception.c +++ b/kern/exception.c @@ -693,7 +693,7 @@ exception_raise(dest_port, thread_port, task_port, ikm_check_initialized(kmsg, kmsg->ikm_size); assert(kmsg->ikm_size == IKM_SAVED_KMSG_SIZE); - if (copyoutmsg((vm_offset_t) &kmsg->ikm_header, (vm_offset_t)receiver->ith_msg, + if (copyoutmsg(&kmsg->ikm_header, receiver->ith_msg, sizeof(struct mach_exception)) || (ikm_cache() != IKM_NULL)) { mr = ipc_kmsg_put(receiver->ith_msg, kmsg, diff --git a/kern/ipc_tt.c b/kern/ipc_tt.c index e14ebac..de4edc6 100644 --- a/kern/ipc_tt.c +++ b/kern/ipc_tt.c @@ -833,7 +833,7 @@ mach_ports_register( */ for (i = 0; i < portsCnt; i++) - ports[i] = memory[i]; + ports[i] = (ipc_port_t)memory[i]; for (; i < TASK_PORT_REGISTER_MAX; i++) ports[i] = IP_NULL; |