From 6017b635a93a1da67540bec2e60edb74cd248cb1 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 16 Jun 1994 01:46:14 +0000 Subject: entered into RCS --- libtrivfs/migsupport.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libtrivfs/migsupport.c b/libtrivfs/migsupport.c index 814d931a..295efc0a 100644 --- a/libtrivfs/migsupport.c +++ b/libtrivfs/migsupport.c @@ -24,10 +24,10 @@ _trivfs_begin_using_protid (mach_port_t port) { struct port_info *pi = ports_get_port (port); int i; - for (i = 0; i < trivfs_protid_nporttypes, i++) + for (i = 0; i < trivfs_protid_nporttypes; i++) if (pi->type == trivfs_protid_porttypes[i]) return (struct trivfs_protid *) pi; - ports_done_with_port (port); + ports_done_with_port ((void *)port); return 0; } else @@ -43,18 +43,18 @@ _trivfs_end_using_protid (struct trivfs_protid *cred) struct trivfs_control * _trivfs_begin_using_control (mach_port_t port) { - if (trivfs_control_nporttypes > 1) + if (trivfs_cntl_nporttypes > 1) { struct port_info *pi = ports_get_port (port); int i; - for (i = 0; i < trivfs_control_nporttypes, i++) - if (pi->type == trivfs_control_porttypes[i]) + for (i = 0; i < trivfs_cntl_nporttypes; i++) + if (pi->type == trivfs_cntl_porttypes[i]) return (struct trivfs_control *) pi; - ports_done_with_port (port); + ports_done_with_port ((void *)port); return 0; } else - return ports_check_port_type (port, trivfs_control_porttypes[0]); + return ports_check_port_type (port, trivfs_cntl_porttypes[0]); } void -- cgit v1.2.3