Commit Graph

3 Commits

Author SHA1 Message Date
Nicolas Iooss
ce8323954d Remove unused-by-set variables
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;
                  ^
2014-11-02 13:02:58 -05:00
Nicolas Iooss
b5da5313d4 Fix policy_version sign in qpol_constraint_expr_node_get_names_iter
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);
                 ^
2014-11-02 13:02:57 -05:00
Chris PeBenito
8363f8edf7 Import libqpol from setools3.
Break setools3 dependence. Also fix SWIG wrapper to work with SWIG 2.x.
2014-10-24 21:00:24 -04:00