summaryrefslogtreecommitdiff
path: root/libtrivfs/fsys-goaway.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtrivfs/fsys-goaway.c')
-rw-r--r--libtrivfs/fsys-goaway.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/libtrivfs/fsys-goaway.c b/libtrivfs/fsys-goaway.c
index efd0bc46..becb058e 100644
--- a/libtrivfs/fsys-goaway.c
+++ b/libtrivfs/fsys-goaway.c
@@ -23,17 +23,16 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <fsys_S.h>
kern_return_t
-trivfs_S_fsys_goaway (mach_port_t fsys,
+trivfs_S_fsys_goaway (struct trivfs_control *cntl,
int flags)
{
error_t err;
- struct port_info *pi;
-
- pi = ports_check_port_type (fsys, trivfs_cntl_porttype);
- if (!pi)
+
+ if (!cred)
return EOPNOTSUPP;
- err = trivfs_goaway (flags);
- ports_done_with_port (pi);
+ err = trivfs_goaway (flags, cred->underlying, cred->pi.type,
+ cred->protidtypes);
+
return err;
}