{
register struct rx_securityClass *tclass;
- LOCK_GLOBAL_MUTEX tclass = (struct rx_securityClass *)
+ LOCK_GLOBAL_MUTEX;
+ tclass = (struct rx_securityClass *)
rxkad_NewServerSecurityObject(0, adir, afsconf_GetKey, NULL);
if (tclass) {
*astr = tclass;
*aindex = 2; /* kerberos security index */
- UNLOCK_GLOBAL_MUTEX return 0;
+ UNLOCK_GLOBAL_MUTEX;
+ return 0;
} else {
- UNLOCK_GLOBAL_MUTEX return 2;
+ UNLOCK_GLOBAL_MUTEX;
+ return 2;
}
}
#endif /* !defined(UKERNEL) */
{
afs_int32 rc;
- LOCK_GLOBAL_MUTEX rc = GenericAuth(adir, astr, aindex, rxkad_clear);
- UNLOCK_GLOBAL_MUTEX return rc;
+ LOCK_GLOBAL_MUTEX;
+ rc = GenericAuth(adir, astr, aindex, rxkad_clear);
+ UNLOCK_GLOBAL_MUTEX;
+ return rc;
}
/* build a fake ticket for 'afs' using keys from adir, returning an
{
afs_int32 rc;
- LOCK_GLOBAL_MUTEX rc = GenericAuth(adir, astr, aindex, rxkad_crypt);
- UNLOCK_GLOBAL_MUTEX return rc;
+ LOCK_GLOBAL_MUTEX;
+ rc = GenericAuth(adir, astr, aindex, rxkad_crypt);
+ UNLOCK_GLOBAL_MUTEX;
+ return rc;
}