summaryrefslogtreecommitdiffstats
path: root/lib/libaccess
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2007-10-18 00:08:38 +0000
committerNoriko Hosoi <nhosoi@redhat.com>2007-10-18 00:08:38 +0000
commit19cd513a509aa6e45361df774e74f2d39451e08a (patch)
tree13ad0e58a486afd842559e1d74d019190c3f1d79 /lib/libaccess
parent878c163528ed089dae1edb8295a6dd4ae842b9b4 (diff)
downloadds-19cd513a509aa6e45361df774e74f2d39451e08a.tar.gz
ds-19cd513a509aa6e45361df774e74f2d39451e08a.tar.xz
ds-19cd513a509aa6e45361df774e74f2d39451e08a.zip
Resolves: #188320
Summary: HP-UX: warnings reported by the HP-UX compiler
Diffstat (limited to 'lib/libaccess')
-rw-r--r--lib/libaccess/acltools.cpp3
-rw-r--r--lib/libaccess/oneeval.cpp2
-rw-r--r--lib/libaccess/symbols.cpp3
3 files changed, 2 insertions, 6 deletions
diff --git a/lib/libaccess/acltools.cpp b/lib/libaccess/acltools.cpp
index 7ce82659..9eb3292d 100644
--- a/lib/libaccess/acltools.cpp
+++ b/lib/libaccess/acltools.cpp
@@ -2505,7 +2505,6 @@ append_cleanup:
int
rename_acl_in_file(char * filename, char * aclname, char * newname)
{
- ACLListHandle_t * racllist=NULL;
char * pattern=NULL;
char header[] = "version 3.0;\n";
int headerlen = strlen(header);
@@ -2565,7 +2564,7 @@ rename_acl_in_file(char * filename, char * aclname, char * newname)
memcpy(&text[headerlen], aclhead, len);
text[headerlen + len] = 0;
- if ((racllist=ACL_ParseString(NULL, text))==NULL) {
+ if (ACL_ParseString(NULL, text)==NULL) {
rv = ACLERRPARSE;
goto rename_cleanup;
}
diff --git a/lib/libaccess/oneeval.cpp b/lib/libaccess/oneeval.cpp
index d18fdcfa..a8f2b248 100644
--- a/lib/libaccess/oneeval.cpp
+++ b/lib/libaccess/oneeval.cpp
@@ -292,7 +292,6 @@ ACL_EvalDestroyContext(ACLListCache_t *cache)
{
ACLAceEntry_t *cur_ace, *next_ace;
ACLAceNumEntry_t *cur_num_p, *next_num_p;
- ACLExprHandle_t *acep;
if (!cache)
return 0;
@@ -309,7 +308,6 @@ ACL_EvalDestroyContext(ACLListCache_t *cache)
(cur_ace->acep->expr_type == ACL_EXPR_TYPE_AUTH))
PListDestroy(cur_ace->global_auth);
next_ace = cur_ace->next;
- acep = cur_ace->acep; /* The ACE structure itself */
PERM_FREE(cur_ace);
cur_ace = next_ace;
}
diff --git a/lib/libaccess/symbols.cpp b/lib/libaccess/symbols.cpp
index b5d90020..209c05ba 100644
--- a/lib/libaccess/symbols.cpp
+++ b/lib/libaccess/symbols.cpp
@@ -181,7 +181,6 @@ NSPR_BEGIN_EXTERN_C
int symTableAddSym(void * table, Symbol_t * newsym, void * symref)
{
SymTable_t * st = (SymTable_t *)table;
- PLHashEntry * he;
PLHashEntry **hep;
PLHashNumber keyhash;
int rv = 0;
@@ -196,7 +195,7 @@ int symTableAddSym(void * table, Symbol_t * newsym, void * symref)
if (*hep == 0) {
/* Expand the hash table if necessary and allocate an entry */
- he = PL_HashTableRawAdd(st->stb_ht,
+ PL_HashTableRawAdd(st->stb_ht,
hep, keyhash, (void *)newsym, symref);
}
else {