diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-09 19:51:01 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-09 19:51:01 +0000 |
commit | 67110be7c7c7d58cf95bca8696c555a68baa1f31 (patch) | |
tree | e20bca2845630e120934c485153eb50efed4fca6 | |
parent | 8b4048879aa66e5d45a1c12d267de02c92938134 (diff) |
(diskfs_S_fsys_syncfs): Use ports_lookup_port and ports_port_deref
instead of ports_check_port_type and ports_done_with_port.
-rw-r--r-- | libdiskfs/fsys-syncfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libdiskfs/fsys-syncfs.c b/libdiskfs/fsys-syncfs.c index fbca52ff..2d51a872 100644 --- a/libdiskfs/fsys-syncfs.c +++ b/libdiskfs/fsys-syncfs.c @@ -27,7 +27,8 @@ diskfs_S_fsys_syncfs (fsys_t controlport, int wait, int children) { - struct port_info *pi = ports_check_port_type (controlport, PT_CTL); + struct port_info *pi = ports_lookup_port (diskfs_port_bucket, controlport, + diskfs_control_class); if (!pi) return EOPNOTSUPP; @@ -40,6 +41,7 @@ diskfs_S_fsys_syncfs (fsys_t controlport, diskfs_sync_everything (wait); diskfs_set_hypermetadata (wait, 0); + ports_port_deref (pi); return 0; } |