diff options
Diffstat (limited to 'libtrivfs/handle-port.c')
-rw-r--r-- | libtrivfs/handle-port.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libtrivfs/handle-port.c b/libtrivfs/handle-port.c index 17952480..397e1523 100644 --- a/libtrivfs/handle-port.c +++ b/libtrivfs/handle-port.c @@ -18,12 +18,14 @@ #include <priv.h> mach_port_t -trivfs_handle_port (mach_port_t realnode) +trivfs_handle_port (mach_port_t realnode, + int cntltype, + int protidtype) { struct trivfs_control *cntl; - cntl = ports_allocate_port (sizeof (struct trivfs_control), - trivfs_cntl_porttype); + cntl = ports_allocate_port (sizeof (struct trivfs_control), cntltype); cntl->underlying = realnode; + cntl->protidtypes = protidtype return ports_get_right (cntl); } |