diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-27 15:13:05 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-27 15:13:05 +0000 |
commit | 4193720d942c29b6d2d07ac8ea0a51e76d02b003 (patch) | |
tree | 75c9fd53c37bfa68afdbca7180238b08c2f12a8e /libtrivfs/protid-clean.c | |
parent | 886df622bee1fc15147eba65fdefcef2eb5ae2fd (diff) |
(trivfs_clean_protid): Use new ports interface. Use PREdecrement in
reference counting check.
Diffstat (limited to 'libtrivfs/protid-clean.c')
-rw-r--r-- | libtrivfs/protid-clean.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtrivfs/protid-clean.c b/libtrivfs/protid-clean.c index 76d79968..cc7726e1 100644 --- a/libtrivfs/protid-clean.c +++ b/libtrivfs/protid-clean.c @@ -27,11 +27,11 @@ trivfs_clean_protid (void *arg) if (trivfs_protid_destroy_hook) (*trivfs_protid_destroy_hook) (cred); mutex_lock (&cred->po->cntl->lock); - if (!cred->po->refcnt--) + if (!--cred->po->refcnt) { if (trivfs_peropen_destroy_hook) (*trivfs_peropen_destroy_hook) (cred->po); - ports_done_with_port (cred->po->cntl); + ports_port_deref (cred->po->cntl); free (cred->po); } mutex_unlock (&cred->po->cntl->lock); |