From 9640c4dba6b4a8f5e01b2b67fc47a836818bc38d Mon Sep 17 00:00:00 2001 From: Samuel Thibault <samuel.thibault@ens-lyon.org> Date: Wed, 23 Jul 2008 23:38:52 +0000 Subject: 2008-07-23 Barry deFreese <bddebian@comcast.net> * i386/i386/locore.h (copyinmsg, copyoutmsg): Make parameters const void* and void* instead of vm_offset_t. * i386/i386at/com.c (comportdeath): Cast port as ipc_port_t in tty_portdeath call. * i386/i386at/kd.c (kdportdeath): Likewise. * i386/i386at/lpr.c (lprportdeath): Likewise. * i386/i386at/kd_mouse.c (mouse_handle_byte): Cast param to wakeup() as vm_offset_t. * i386/intel/pmap.c (pmap_destroy): Cast arg 2 of kmem_free() to vm_offset_t. * i386/intel/pmap.h: Cast all arg 1 params to kvtophy() to vm_offset_t. * ipc/ipc_kmsg.c: Remove casts from params to copyinmsg and copyoutmsg calls. * ipc/mach_msg.c: Likewise. * kern/exceptions.c: Likewise. * ipc/mach_msg.c: Remove casts from params to copyout calls. * ipc/bootstrap.c: Likewise. * kern/ipc_tt.c (mach_ports_register): Cast memory[i] as ipc_port_t in assignment. --- kern/ipc_tt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kern/ipc_tt.c') diff --git a/kern/ipc_tt.c b/kern/ipc_tt.c index e14ebacf..de4edc65 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; -- cgit v1.2.3