summaryrefslogtreecommitdiff
path: root/libdiskfs/io-reauthenticate.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/io-reauthenticate.c')
-rw-r--r--libdiskfs/io-reauthenticate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdiskfs/io-reauthenticate.c b/libdiskfs/io-reauthenticate.c
index 3c5da52d..69d78bc5 100644
--- a/libdiskfs/io-reauthenticate.c
+++ b/libdiskfs/io-reauthenticate.c
@@ -34,13 +34,13 @@ diskfs_S_io_reauthenticate (struct protid *cred,
/* This routine must carefully ignore EINTR because we
are a simpleroutine, so callers won't know to restart. */
- mutex_lock (&cred->po->np->lock);
+ pthread_mutex_lock (&cred->po->np->lock);
do
err = diskfs_start_protid (cred->po, &newcred);
while (err == EINTR);
if (err)
{
- mutex_unlock (&cred->po->np->lock);
+ pthread_mutex_unlock (&cred->po->np->lock);
return err;
}
@@ -58,7 +58,7 @@ diskfs_S_io_reauthenticate (struct protid *cred,
mach_port_deallocate (mach_task_self (), newright);
- mutex_unlock (&cred->po->np->lock);
+ pthread_mutex_unlock (&cred->po->np->lock);
ports_port_deref (newcred);