summaryrefslogtreecommitdiff
path: root/libnetfs/io-reauthenticate.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs/io-reauthenticate.c')
-rw-r--r--libnetfs/io-reauthenticate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libnetfs/io-reauthenticate.c b/libnetfs/io-reauthenticate.c
index 3140499c..1d2d935a 100644
--- a/libnetfs/io-reauthenticate.c
+++ b/libnetfs/io-reauthenticate.c
@@ -31,7 +31,7 @@ netfs_S_io_reauthenticate (struct protid *user, mach_port_t rend_port)
if (!user)
return EOPNOTSUPP;
- mutex_lock (&user->po->np->lock);
+ pthread_mutex_lock (&user->po->np->lock);
newpi = netfs_make_protid (user->po, 0);
newright = ports_get_send_right (newpi);
@@ -46,7 +46,7 @@ netfs_S_io_reauthenticate (struct protid *user, mach_port_t rend_port)
mach_port_move_member (mach_task_self (), newpi->pi.port_right,
netfs_port_bucket->portset);
- mutex_unlock (&user->po->np->lock);
+ pthread_mutex_unlock (&user->po->np->lock);
ports_port_deref (newpi);
return err;