summaryrefslogtreecommitdiff
path: root/libtrivfs/fsys-goaway.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-05-10 19:38:54 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-05-10 19:38:54 +0000
commitf814ab95ea7835ae695378c6bb1feeec5116aec0 (patch)
tree374239eaa240ae0fcebe8fb4c2e50cfce9bfde7b /libtrivfs/fsys-goaway.c
parent749fcd79933e95a49f5c941adea55f3fa81653ca (diff)
Formerly fsys-goaway.c.~2~
Diffstat (limited to 'libtrivfs/fsys-goaway.c')
-rw-r--r--libtrivfs/fsys-goaway.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libtrivfs/fsys-goaway.c b/libtrivfs/fsys-goaway.c
index a1dcfff6..b9bbabdb 100644
--- a/libtrivfs/fsys-goaway.c
+++ b/libtrivfs/fsys-goaway.c
@@ -25,8 +25,14 @@ error_t
trivfs_S_fsys_goaway (mach_port_t fsys,
int flags)
{
- if (!ports_get_port (fsys))
+ error_t err;
+ struct port_info *pi;
+
+ pi = ports_get_port (fsys, trivfs_cntl_porttype);
+ if (!pi)
return EOPNOTSUPP;
- return trivfs_goaway (flags);
+ err = trivfs_goaway (flags);
+ ports_done_with_port (pi);
+ return err;
}