summaryrefslogtreecommitdiff
path: root/src/core/selinux-setup.c
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-07-27 20:02:00 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-07-28 22:35:41 +0200
commitf8e9f2cc4bbf6d1ee8ec6d5618f95be03530b95a (patch)
tree3107408b899ca948bbe134d260b03f64f64306f7 /src/core/selinux-setup.c
parent6c1f3ba54ac1f42598c543b86daaf294b29294b1 (diff)
selinux: avoid inclusion of null_log without selinux
Avoids a compile time warning: warning: 'null_log' defined but not used [-Wunused-function]
Diffstat (limited to 'src/core/selinux-setup.c')
-rw-r--r--src/core/selinux-setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/selinux-setup.c b/src/core/selinux-setup.c
index 22ca820188..fa025b7268 100644
--- a/src/core/selinux-setup.c
+++ b/src/core/selinux-setup.c
@@ -36,9 +36,11 @@
#include "log.h"
#include "label.h"
+#ifdef HAVE_SELINUX
static int null_log(int type, const char *fmt, ...) {
return 0;
}
+#endif
int selinux_setup(bool *loaded_policy) {