Index: nss/mozilla/security/nss/lib/dev/devslot.c |
=================================================================== |
--- nss/mozilla/security/nss/lib/dev/devslot.c (revision 55475) |
+++ nss/mozilla/security/nss/lib/dev/devslot.c (working copy) |
@@ -35,7 +35,7 @@ |
* ***** END LICENSE BLOCK ***** */ |
#ifdef DEBUG |
-static const char CVS_ID[] = "@(#) $RCSfile: devslot.c,v $ $Revision: 1.26 $ $Date: 2010/01/08 02:00:58 $"; |
+static const char CVS_ID[] = "@(#) $RCSfile: devslot.c,v $ $Revision: 1.27 $ $Date: 2010/04/03 18:27:30 $"; |
#endif /* DEBUG */ |
#include "pkcs11.h" |
@@ -70,7 +70,7 @@ |
) |
{ |
if (slot) { |
- if (PR_AtomicDecrement(&slot->base.refCount) == 0) { |
+ if (PR_ATOMIC_DECREMENT(&slot->base.refCount) == 0) { |
PZ_DestroyLock(slot->base.lock); |
return nssArena_Destroy(slot->base.arena); |
} |
@@ -107,7 +107,7 @@ |
NSSSlot *slot |
) |
{ |
- PR_AtomicIncrement(&slot->base.refCount); |
+ PR_ATOMIC_INCREMENT(&slot->base.refCount); |
return slot; |
} |