summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-09 19:28:15 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-09 19:28:15 +0000
commitfe737e9ef32470f8a7a701b53a2f5a0a0b3c2a2c (patch)
treee67f1cbaadf8f956260cc56fbe14859f21f50327 /libdiskfs
parentbfdffa9f75b2ac37c9cec3940ab6aac63499b4a4 (diff)
(diskfs_S_fsys_getroot): Use ports_lookup_port and ports_port_deref
instead of ports_check_port_type and ports_done_with_port.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/fsys-getroot.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libdiskfs/fsys-getroot.c b/libdiskfs/fsys-getroot.c
index 044dc1bf..ab630a8e 100644
--- a/libdiskfs/fsys-getroot.c
+++ b/libdiskfs/fsys-getroot.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1993, 1994 Free Software Foundation
+ Copyright (C) 1993, 1994, 1995 Free Software Foundation
This file is part of the GNU Hurd.
@@ -38,7 +38,8 @@ diskfs_S_fsys_getroot (fsys_t controlport,
file_t *returned_port,
mach_msg_type_name_t *returned_port_poly)
{
- struct port_info *pt = ports_check_port_type (controlport, PT_CTL);
+ struct port_info *pt = ports_lookup_port (diskfs_port_bucket, controlport,
+ diskfs_control_class);
error_t error = 0;
mode_t type;
struct protid pseudocred;
@@ -194,7 +195,7 @@ diskfs_S_fsys_getroot (fsys_t controlport,
mutex_unlock (&diskfs_root_node->lock);
- ports_done_with_port (pt);
+ ports_port_deref (pt);
return 0;
}