chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c1f3ba
)
selinux: avoid inclusion of null_log without selinux
author
Dave Reisner
<dreisner@archlinux.org>
Sat, 28 Jul 2012 00:02:00 +0000
(20:02 -0400)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sat, 28 Jul 2012 20:35:41 +0000
(22:35 +0200)
Avoids a compile time warning:
warning: 'null_log' defined but not used [-Wunused-function]
src/core/selinux-setup.c
patch
|
blob
|
history
diff --git
a/src/core/selinux-setup.c
b/src/core/selinux-setup.c
index 22ca820188b243dfa5db3b856bce7e7dcd781ee0..fa025b72687ad0d4e0863a3589a610f20b05e6d2 100644
(file)
--- 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) {