summaryrefslogtreecommitdiff
path: root/libfshelp
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-11-06 22:58:15 +0000
committerMiles Bader <miles@gnu.org>1995-11-06 22:58:15 +0000
commit2348dc14e371d1057e8e48037e8894c0084c6f13 (patch)
treecc45a7bf2d6b9f62c7cf22411d7fb09a1df4bfad /libfshelp
parent75884d172cbee6cd968c7d93bf3fe9132e42f57d (diff)
(service_fsys_startup):
Don't pass the address of reply.realnodeType.msgt_name -- it's not really an int, although the compiler pretends it is.
Diffstat (limited to 'libfshelp')
-rw-r--r--libfshelp/start-translator-long.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libfshelp/start-translator-long.c b/libfshelp/start-translator-long.c
index d8890542..eea32187 100644
--- a/libfshelp/start-translator-long.c
+++ b/libfshelp/start-translator-long.c
@@ -141,12 +141,16 @@ service_fsys_startup (fshelp_open_fn_t underlying_open_fn,
reply.RetCode = MIG_BAD_ARGUMENTS;
else
{
+ mach_msg_type_name_t realnode_type;
+
*control = request.startup.control_port;
- reply.realnodeType = realnodeType;
reply.RetCode =
(*underlying_open_fn) (request.startup.flags,
- &reply.realnode, &reply.realnodeType.msgt_name);
+ &reply.realnode, &realnode_type);
+
+ reply.realnodeType = realnodeType;
+ reply.realnodeType.msgt_name = realnode_type;
if (!reply.RetCode && reply.realnode != MACH_PORT_NULL)
/* The message can't be simple because of the port. */