mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-15 00:57:20 +00:00
Variable policy is both a global variable and a parameter to some functions in policycoreutils/sepolicy/search.c. This makes the building fail when using -Wshadow -Werror compilation flags. Fix this by renaming the global variable global_policy. This does not change the API of the Python module. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
8 lines
223 B
C
8 lines
223 B
C
#include <apol/policy.h>
|
|
extern apol_policy_t *global_policy;
|
|
extern PyObject *wrap_info(PyObject *self, PyObject *args);
|
|
extern void init_info (PyObject *m);
|
|
extern PyObject *wrap_search(PyObject *self, PyObject *args);
|
|
|
|
|