Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2381)

Unified Diff: nss/mozilla/security/nss/lib/pk11wrap/pk11slot.c

Issue 3135002: Update to NSS 3.12.7 and NSPR 4.8.6.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: nss/mozilla/security/nss/lib/pk11wrap/pk11slot.c
===================================================================
--- nss/mozilla/security/nss/lib/pk11wrap/pk11slot.c (revision 55475)
+++ nss/mozilla/security/nss/lib/pk11wrap/pk11slot.c (working copy)
@@ -418,7 +418,7 @@
PK11SlotInfo *
PK11_ReferenceSlot(PK11SlotInfo *slot)
{
- PR_AtomicIncrement(&slot->refCount);
+ PR_ATOMIC_INCREMENT(&slot->refCount);
return slot;
}
@@ -460,7 +460,7 @@
void
PK11_FreeSlot(PK11SlotInfo *slot)
{
- if (PR_AtomicDecrement(&slot->refCount) == 0) {
+ if (PR_ATOMIC_DECREMENT(&slot->refCount) == 0) {
PK11_DestroySlot(slot);
}
}

Powered by Google App Engine
This is Rietveld 408576698