mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
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:
parent
6c1f3ba54a
commit
f8e9f2cc4b
@ -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) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user