From caa1666dd2eb38fbc72dab53a588401c2da90f89 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 28 Feb 1999 20:49:09 +0000 Subject: 1999-02-28 Roland McGrath * io-revoke.c (diskfs_S_io_revoke): Use ports_class_iterate. * readonly.c (diskfs_set_readonly): Likewise. --- libdiskfs/io-revoke.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libdiskfs/io-revoke.c') diff --git a/libdiskfs/io-revoke.c b/libdiskfs/io-revoke.c index 0f15eaad..d42fb6c1 100644 --- a/libdiskfs/io-revoke.c +++ b/libdiskfs/io-revoke.c @@ -31,8 +31,7 @@ diskfs_S_io_revoke (struct protid *cred) { struct protid *user = port; - if ((user->pi.class == diskfs_protid_class) - && (user != cred) + if ((user != cred) && (user->po->np == np)) ports_destroy_right (user); return 0; @@ -53,7 +52,7 @@ diskfs_S_io_revoke (struct protid *cred) return err; ports_inhibit_bucket_rpcs (diskfs_port_bucket); - ports_bucket_iterate (diskfs_port_bucket, iterator_function); + ports_class_iterate (diskfs_protid_class, iterator_function); ports_resume_bucket_rpcs (diskfs_port_bucket); return 0; -- cgit v1.2.3