diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-08-30 16:23:22 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-08-30 17:41:33 +0100 |
commit | b119fc4a142c467c6ca3f075596b03f6a00f957d (patch) | |
tree | 99ad2c04a635e071ef1b3e01bdc02593db7ac44c /bus | |
parent | 3e35c91fd874c131b7d49599f64e3a5546cc4035 (diff) | |
download | dbus-b119fc4a142c467c6ca3f075596b03f6a00f957d.tar.gz |
Fix unused function when SELinux is not enabled
It must be one of the "only smcv tests this" configurations...
Diffstat (limited to 'bus')
-rw-r--r-- | bus/selinux.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bus/selinux.c b/bus/selinux.c index 57c94326..c36c94ec 100644 --- a/bus/selinux.c +++ b/bus/selinux.c @@ -959,10 +959,11 @@ bus_selinux_id_table_print (DBusHashTable *service_table) /** * Print out some AVC statistics. */ +#ifdef HAVE_SELINUX static void bus_avc_print_stats (void) { -#if defined (DBUS_ENABLE_VERBOSE_MODE) && defined (HAVE_SELINUX) +#ifdef DBUS_ENABLE_VERBOSE_MODE struct avc_cache_stats cstats; if (!selinux_enabled) @@ -980,9 +981,9 @@ bus_avc_print_stats (void) _dbus_verbose ("CAV hits: %d\n", cstats.cav_hits); _dbus_verbose ("CAV probes: %d\n", cstats.cav_probes); _dbus_verbose ("CAV misses: %d\n", cstats.cav_misses); -#endif /* DBUS_ENABLE_VERBOSE_MODE && HAVE_SELINUX */ +#endif /* DBUS_ENABLE_VERBOSE_MODE */ } - +#endif /* HAVE_SELINUX */ /** * Destroy the AVC before we terminate. |