summaryrefslogtreecommitdiffstats
path: root/lib/libaccess/aclflush.cpp
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2005-02-23 18:19:13 +0000
committerRob Crittenden <rcritten@redhat.com>2005-02-23 18:19:13 +0000
commit21305115e547133a0122c44b7e9956ef78dc94be (patch)
treeb72f28ba737b35c0f13003478f5e777146789ef3 /lib/libaccess/aclflush.cpp
parentf64e827b9c3011b07b5d78dd52466236dc77346e (diff)
downloadds-21305115e547133a0122c44b7e9956ef78dc94be.tar.gz
ds-21305115e547133a0122c44b7e9956ef78dc94be.tar.xz
ds-21305115e547133a0122c44b7e9956ef78dc94be.zip
149510
Strip down ACL code and support libraries to the bare minimum.
Diffstat (limited to 'lib/libaccess/aclflush.cpp')
-rw-r--r--lib/libaccess/aclflush.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/lib/libaccess/aclflush.cpp b/lib/libaccess/aclflush.cpp
index dfee47d6..05fa18e4 100644
--- a/lib/libaccess/aclflush.cpp
+++ b/lib/libaccess/aclflush.cpp
@@ -7,7 +7,7 @@
* Source file for the ACL_CacheFlush-related routines.
*/
-#include <base/nsassert.h>
+#include <prlog.h>
#include <base/util.h>
#include <libaccess/acl.h>
#include "aclpriv.h"
@@ -25,15 +25,15 @@ deletelists(PRHashEntry *he, PRIntn i, void *arg)
ACLListHandle_t *acllist=(ACLListHandle_t *)he->value;
NSErr_t *errp = 0;
- NS_ASSERT(he);
- NS_ASSERT(he->value);
+ PR_ASSERT(he);
+ PR_ASSERT(he->value);
if (acllist->ref_count) {
// If the list is in use, increment the counter. Then set the
// stale flag. The other user can't delete the list since we're
// counted as well. Finally, decrement the counter and whoever
// sets it to zero will delete the ACL List.
- NS_ASSERT(ACL_CritHeld());
+ PR_ASSERT(ACL_CritHeld());
acllist->ref_count++;
acllist->flags |= ACL_LIST_STALE;
if (--acllist->ref_count == 0)
@@ -54,8 +54,8 @@ restartdeletelists(PRHashEntry *he, PRIntn i, void *arg)
// what.
ACLListHandle_t *acllist=(ACLListHandle_t *)he->value;
- NS_ASSERT(he);
- NS_ASSERT(he->value);
+ PR_ASSERT(he);
+ PR_ASSERT(he->value);
ACL_ListDestroy(errp, acllist);
@@ -67,7 +67,7 @@ static AclCacheFlushFunc_t AclCacheFlushRoutine = NULL;
NSAPI_PUBLIC int
ACL_CacheFlushRegister(AclCacheFlushFunc_t flush_func)
{
- NS_ASSERT(flush_func);
+ PR_ASSERT(flush_func);
AclCacheFlushRoutine = flush_func;
return 0;
@@ -79,12 +79,12 @@ ACL_CacheFlush(void)
ACLGlobal_p newACLGlobal;
NSErr_t *errp = 0;
- NS_ASSERT(ACLGlobal);
- NS_ASSERT(ACLGlobal->masterlist);
- NS_ASSERT(ACLGlobal->listhash);
- NS_ASSERT(ACLGlobal->urihash);
- NS_ASSERT(ACLGlobal->urigethash);
- NS_ASSERT(ACLGlobal->pool);
+ PR_ASSERT(ACLGlobal);
+ PR_ASSERT(ACLGlobal->masterlist);
+ PR_ASSERT(ACLGlobal->listhash);
+ PR_ASSERT(ACLGlobal->urihash);
+ PR_ASSERT(ACLGlobal->urigethash);
+ PR_ASSERT(ACLGlobal->pool);
ACL_CritEnter();
@@ -142,12 +142,12 @@ ACL_Restart(void *clntData)
{
NSErr_t *errp = 0;
- NS_ASSERT(ACLGlobal);
- NS_ASSERT(ACLGlobal->masterlist);
- NS_ASSERT(ACLGlobal->listhash);
- NS_ASSERT(ACLGlobal->urihash);
- NS_ASSERT(ACLGlobal->urigethash);
- NS_ASSERT(ACLGlobal->pool);
+ PR_ASSERT(ACLGlobal);
+ PR_ASSERT(ACLGlobal->masterlist);
+ PR_ASSERT(ACLGlobal->listhash);
+ PR_ASSERT(ACLGlobal->urihash);
+ PR_ASSERT(ACLGlobal->urigethash);
+ PR_ASSERT(ACLGlobal->pool);
// Unlike ACL_CacheFlush, this routine can be much more cavalier about
// freeing up memory, since there's guaranteed to be no users about at