summaryrefslogtreecommitdiffstats
path: root/lib/libaccess/permhash.h
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2010-08-31 21:17:30 -0600
committerRich Megginson <rmeggins@redhat.com>2010-09-01 11:50:05 -0600
commite89048c403090ad87ff0ee963f09865945196dbc (patch)
tree5b6fe33825f8b75419f7d58315e43c879392244c /lib/libaccess/permhash.h
parent481ed4a2b5ccd8da5fdff445d36389a546593297 (diff)
downloadds-warnings.tar.gz
ds-warnings.tar.xz
ds-warnings.zip
fix compiler warnings - unused vars/funcs, invalid castswarnings
This commit fixes many compiler warnings, mostly for things like unused variables, functions, goto labels. One place was using csngen_free instead of csn_free. A couple of places were using casts incorrectly, and several places needed some casts added.
Diffstat (limited to 'lib/libaccess/permhash.h')
-rw-r--r--lib/libaccess/permhash.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/libaccess/permhash.h b/lib/libaccess/permhash.h
index f76ab4c6..9446fb55 100644
--- a/lib/libaccess/permhash.h
+++ b/lib/libaccess/permhash.h
@@ -80,13 +80,7 @@ static PLHashAllocOps ACLPermAllocOps = {
ACL_PermFreeEntry
};
-static int
-PR_StringFree(PLHashEntry *he, int i, void *arg)
-{
- PERM_FREE(he->key);
- return 0;
-}
-
+#ifndef NO_ACL_HASH_FUNCS
static PLHashNumber
PR_HashCaseString(const void *key)
{
@@ -111,6 +105,7 @@ PR_CompareCaseStrings(const void *v1, const void *v2)
return (strcasecmp(s1, s2) == 0);
#endif
}
-
+#endif /* NO_ACL_HASH_FUNCS */
+
#endif /* _PERMHASH_H */