From 4193720d942c29b6d2d07ac8ea0a51e76d02b003 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 27 Jun 1995 15:13:05 +0000 Subject: (trivfs_clean_protid): Use new ports interface. Use PREdecrement in reference counting check. --- libtrivfs/protid-clean.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libtrivfs') 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); -- cgit v1.2.3