summaryrefslogtreecommitdiffstats
path: root/lib/libaccess/register.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/register.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/register.cpp')
-rw-r--r--lib/libaccess/register.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/libaccess/register.cpp b/lib/libaccess/register.cpp
index 2973e1d5..22074d67 100644
--- a/lib/libaccess/register.cpp
+++ b/lib/libaccess/register.cpp
@@ -11,7 +11,7 @@
#include <plhash.h>
#include <base/systems.h>
#include <base/util.h>
-#include <base/nsassert.h>
+#include <prlog.h>
#include "permhash.h"
#include <libaccess/nserror.h>
#include <libaccess/acl.h>
@@ -48,7 +48,7 @@ ACL_LasHashInit()
PR_CompareValues,
&ACLPermAllocOps,
NULL);
- NS_ASSERT(ACLLasEvalHash);
+ PR_ASSERT(ACLLasEvalHash);
ACLLasFlushHash = PR_NewHashTable(0,
PR_HashString,
@@ -56,7 +56,7 @@ ACL_LasHashInit()
PR_CompareValues,
&ACLPermAllocOps,
NULL);
- NS_ASSERT(ACLLasFlushHash);
+ PR_ASSERT(ACLLasFlushHash);
ACLMethodHash = PR_NewHashTable(ACL_MAX_METHOD,
PR_HashCaseString,
@@ -64,7 +64,7 @@ ACL_LasHashInit()
PR_CompareValues,
&ACLPermAllocOps,
NULL);
- NS_ASSERT(ACLMethodHash);
+ PR_ASSERT(ACLMethodHash);
ACLDbTypeHash = PR_NewHashTable(ACL_MAX_DBTYPE,
PR_HashCaseString,
@@ -72,7 +72,7 @@ ACL_LasHashInit()
PR_CompareValues,
&ACLPermAllocOps,
NULL);
- NS_ASSERT(ACLDbTypeHash);
+ PR_ASSERT(ACLDbTypeHash);
for (i = 0; i < ACL_MAX_DBTYPE; i++)
ACLDbParseFnTable[i] = 0;
@@ -83,7 +83,7 @@ ACL_LasHashInit()
PR_CompareValues,
&ACLPermAllocOps,
NULL);
- NS_ASSERT(ACLDbTypeHash);
+ PR_ASSERT(ACLDbTypeHash);
ACLDbNameHash = PR_NewHashTable(0,
PR_HashCaseString,
@@ -91,7 +91,7 @@ ACL_LasHashInit()
PR_CompareValues,
&ACLPermAllocOps,
ACL_DATABASE_POOL);
- NS_ASSERT(ACLDbNameHash);
+ PR_ASSERT(ACLDbNameHash);
ACLUserLdbHash = PR_NewHashTable(0,
PR_HashCaseString,
@@ -99,7 +99,7 @@ ACL_LasHashInit()
PR_CompareValues,
&ACLPermAllocOps,
NULL);
- NS_ASSERT(ACLUserLdbHash);
+ PR_ASSERT(ACLUserLdbHash);
return;
}
@@ -166,7 +166,7 @@ NSAPI_PUBLIC int
ACL_LasFindEval(NSErr_t *errp, char *attr_name, LASEvalFunc_t *eval_funcp)
{
- NS_ASSERT(attr_name);
+ PR_ASSERT(attr_name);
if (!attr_name) return -1;
*eval_funcp = (LASEvalFunc_t)PR_HashTableLookup(ACLLasEvalHash, attr_name);
@@ -187,7 +187,7 @@ NSAPI_PUBLIC int
ACL_LasFindFlush(NSErr_t *errp, char *attr_name, LASFlushFunc_t *flush_funcp)
{
- NS_ASSERT(attr_name);
+ PR_ASSERT(attr_name);
if (!attr_name) return -1;
*flush_funcp = (LASFlushFunc_t)PR_HashTableLookup(ACLLasFlushHash, attr_name);