libqpol' hashtable iterator uses non-const data, so
ebitmap_state_get_cur_polcap needs to return a "void *" out of a "const
char *".
This fixes the following gcc warning:
libqpol/iterator.c: In function 'ebitmap_state_get_cur_polcap':
libqpol/iterator.c:653:2: warning: return discards 'const' qualifier
from pointer target type
return sepol_polcap_getname(es->cur);
^
This also adds a warning from "gcc -Wcast-qual" but compiling with this
switch leads to way more warnings.
This fixes gcc warnings like:
libqpol/avrule_query.c: In function 'qpol_avrule_get_perm_iter':
libqpol/avrule_query.c:159:14: warning: variable 'db' set but not used
[-Wunused-but-set-variable]
policydb_t *db = NULL;
^