Commit b119fc4a authored by Simon McVittie's avatar Simon McVittie

Fix unused function when SELinux is not enabled

It must be one of the "only smcv tests this" configurations...
parent 3e35c91f
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment