selinux: avoid inclusion of null_log without selinux

Avoids a compile time warning:

  warning: 'null_log' defined but not used [-Wunused-function]
This commit is contained in:
Dave Reisner 2012-07-27 20:02:00 -04:00 committed by Zbigniew Jędrzejewski-Szmek
parent 6c1f3ba54a
commit f8e9f2cc4b

View file

@ -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) {