diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-06-16 01:46:14 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-06-16 01:46:14 +0000 |
commit | 6017b635a93a1da67540bec2e60edb74cd248cb1 (patch) | |
tree | 63b75a7919b5633c02825f19a38764312ef96f32 /libtrivfs | |
parent | 860b5507841ed60e326083d9f9d3d20873390007 (diff) |
entered into RCS
Diffstat (limited to 'libtrivfs')
-rw-r--r-- | libtrivfs/migsupport.c | 14 |
1 files 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 |