From 6a685dc951be815e9ec7fea76bd49687c60e4524 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 8 May 2002 09:24:16 +0000 Subject: 2002-05-08 Roland McGrath * portxlate.c (port_name_xlator_xlate): Use mach_msg_type_name_t instead of mach_port_type_t, to match RPC prototype. --- libshouldbeinlibc/portxlate.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'libshouldbeinlibc') diff --git a/libshouldbeinlibc/portxlate.c b/libshouldbeinlibc/portxlate.c index d574cb2f..291bcf3a 100644 --- a/libshouldbeinlibc/portxlate.c +++ b/libshouldbeinlibc/portxlate.c @@ -1,8 +1,7 @@ /* Translate mach port names between two tasks - Copyright (C) 1996, 1999 Free Software Foundation, Inc. - - Written by Miles Bader + Copyright (C) 1996,99,2002 Free Software Foundation, Inc. + Written by Miles Bader This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -61,9 +60,9 @@ port_name_xlator_create (mach_port_t from_task, mach_port_t to_task, } else { - munmap ((caddr_t) x->to_names, + munmap ((caddr_t) x->to_names, x->to_names_len * sizeof (mach_port_t)); - munmap ((caddr_t) x->to_types, + munmap ((caddr_t) x->to_types, x->to_types_len * sizeof (mach_port_type_t)); err = ENOMEM; } @@ -108,8 +107,8 @@ port_name_xlator_xlate (struct port_name_xlator *x, error_t err; mach_port_t port; mach_msg_type_number_t i; - mach_port_type_t aquired_type; - mach_port_type_t valid_to_types; + mach_msg_type_name_t aquired_type; + mach_msg_type_name_t valid_to_types; if (from_type == 0) { -- cgit v1.2.3