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;
^
gcc reported:
libqpol/constraint_query.c: In function 'qpol_constraint_expr_node_get_names_iter':
libqpol/constraint_query.c:783:45: error: pointer targets in passing
argument 2 of 'qpol_policy_get_policy_version' differ in signedness
[-Werror=pointer-sign]
if (qpol_policy_get_policy_version(policy, &policy_version))
^
In file included from libqpol/constraint_query.c:29:0:
libqpol/include/qpol/policy.h:250:13: note: expected 'unsigned int
*' but argument is of type 'int *'
extern int qpol_policy_get_policy_version(const qpol_policy_t * policy, unsigned int *version);
^