diff options
Diffstat (limited to 'libdiskfs/io-restrict-auth.c')
-rw-r--r-- | libdiskfs/io-restrict-auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/io-restrict-auth.c b/libdiskfs/io-restrict-auth.c index c1560ac1..011aa19e 100644 --- a/libdiskfs/io-restrict-auth.c +++ b/libdiskfs/io-restrict-auth.c @@ -40,7 +40,7 @@ diskfs_S_io_restrict_auth (struct protid *cred, if (err) return err; - mutex_lock (&cred->po->np->lock); + pthread_mutex_lock (&cred->po->np->lock); err = diskfs_create_protid (cred->po, user, &newpi); if (! err) { @@ -48,7 +48,7 @@ diskfs_S_io_restrict_auth (struct protid *cred, *newportpoly = MACH_MSG_TYPE_MAKE_SEND; ports_port_deref (newpi); } - mutex_unlock (&cred->po->np->lock); + pthread_mutex_unlock (&cred->po->np->lock); iohelp_free_iouser (user); return err; |