9d57ab6c32
`hashtab_search()` takes a const_hashtab_key_t, alias `const char*` as second key parameter type. Do not unnecessarily cast variables of type `const char*` to hashtab_key_t, alias `char*`. policydb.c: In function ‘policydb_string_to_security_class’: policydb.c:4164:39: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 4164 | (hashtab_key_t) class_name); | ^ policydb.c: In function ‘policydb_string_to_av_perm’: policydb.c:4184:25: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 4184 | (hashtab_key_t)perm_name); | ^ policydb.c:4193:25: warning: cast discards ‘const’ qualifier from pointer target type [-Wcast-qual] 4193 | (hashtab_key_t)perm_name); | ^ Acked-by: James Carter <jwcart2@gmail.com> Signed-off-by: Christian Göttsche <cgzones@googlemail.com> |
||
---|---|---|
.. | ||
cil | ||
fuzz | ||
include | ||
man | ||
src | ||
tests | ||
utils | ||
.gitignore | ||
COPYING | ||
Makefile | ||
VERSION |