diff options
Diffstat (limited to 'libtrivfs/protid-clean.c')
-rw-r--r-- | libtrivfs/protid-clean.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libtrivfs/protid-clean.c b/libtrivfs/protid-clean.c index b76b202e..856d7af5 100644 --- a/libtrivfs/protid-clean.c +++ b/libtrivfs/protid-clean.c @@ -30,19 +30,19 @@ trivfs_clean_protid (void *arg) (*trivfs_protid_destroy_hook) (cred); /* If we hold the only reference to the peropen, try to get rid of it. */ - mutex_lock (&cred->po->cntl->lock); + pthread_mutex_lock (&cred->po->cntl->lock); if (cred->po->refcnt == 1 && trivfs_peropen_destroy_hook) { - mutex_unlock (&cred->po->cntl->lock); + pthread_mutex_unlock (&cred->po->cntl->lock); (*trivfs_peropen_destroy_hook) (cred->po); - mutex_lock (&cred->po->cntl->lock); + pthread_mutex_lock (&cred->po->cntl->lock); } if (--cred->po->refcnt == 0) { ports_port_deref (cred->po->cntl); free (cred->po); } - mutex_unlock (&cred->po->cntl->lock); + pthread_mutex_unlock (&cred->po->cntl->lock); iohelp_free_iouser (cred->user); |