summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/portxlate.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-08 09:24:16 +0000
committerRoland McGrath <roland@gnu.org>2002-05-08 09:24:16 +0000
commit6a685dc951be815e9ec7fea76bd49687c60e4524 (patch)
tree015dbf90fa3f10bc1d2e0f87ad473899533b4821 /libshouldbeinlibc/portxlate.c
parentdf125d7171415fc15ec338237fe32baefaf723f0 (diff)
2002-05-08 Roland McGrath <roland@frob.com>
* portxlate.c (port_name_xlator_xlate): Use mach_msg_type_name_t instead of mach_port_type_t, to match RPC prototype.
Diffstat (limited to 'libshouldbeinlibc/portxlate.c')
-rw-r--r--libshouldbeinlibc/portxlate.c13
1 files changed, 6 insertions, 7 deletions
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 <miles@gnu.ai.mit.edu>
+ Copyright (C) 1996,99,2002 Free Software Foundation, Inc.
+ Written by Miles Bader <miles@gnu.org>
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)
{