diff options
Diffstat (limited to 'security/nss/lib/softoken/legacydb/pcertdb.c')
-rw-r--r-- | security/nss/lib/softoken/legacydb/pcertdb.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/security/nss/lib/softoken/legacydb/pcertdb.c b/security/nss/lib/softoken/legacydb/pcertdb.c index 7dd71811a..966164db1 100644 --- a/security/nss/lib/softoken/legacydb/pcertdb.c +++ b/security/nss/lib/softoken/legacydb/pcertdb.c @@ -46,7 +46,6 @@ #include "secitem.h" #include "secder.h" -#include "nsslocks.h" #include "secerr.h" #include "lgdb.h" @@ -87,7 +86,7 @@ void certdb_InitDBLock(NSSLOWCERTCertDBHandle *handle) { if (dbLock == NULL) { - nss_InitLock(&dbLock, nssILockCertDB); + dbLock = PZ_NewLock(nssILockCertDB); PORT_Assert(dbLock != NULL); } } @@ -96,19 +95,19 @@ SECStatus nsslowcert_InitLocks(void) { if (freeListLock == NULL) { - nss_InitLock(&freeListLock, nssILockRefLock); + freeListLock = PZ_NewLock(nssILockRefLock); if (freeListLock == NULL) { return SECFailure; } } if (certRefCountLock == NULL) { - nss_InitLock(&certRefCountLock, nssILockRefLock); + certRefCountLock = PZ_NewLock(nssILockRefLock); if (certRefCountLock == NULL) { return SECFailure; } } if (certTrustLock == NULL ) { - nss_InitLock(&certTrustLock, nssILockCertDB); + certTrustLock = PZ_NewLock(nssILockCertDB); if (certTrustLock == NULL) { return SECFailure; } |