From 039405897aa8245990bc6249e58a6595debcc21e Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 10 Nov 2008 11:29:40 +0000 Subject: 2008-11-05 Shakthi Kannan * ipc/mach_port.c (mach_port_insert_right): Cast poly into (ipc_object_t) to fix compiler warning when calling ipc_object_copyout_name. --- ipc/mach_port.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ipc/mach_port.c') diff --git a/ipc/mach_port.c b/ipc/mach_port.c index 63c25dcd..17aaf88a 100644 --- a/ipc/mach_port.c +++ b/ipc/mach_port.c @@ -1290,7 +1290,8 @@ mach_port_insert_right( if (!IO_VALID((ipc_object_t)poly)) return KERN_INVALID_CAPABILITY; - return ipc_object_copyout_name(space, poly, polyPoly, FALSE, name); + return ipc_object_copyout_name(space, (ipc_object_t)poly, + polyPoly, FALSE, name); } /* -- cgit v1.2.3