diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2016-10-11 10:42:22 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2016-10-11 10:42:22 +0200 |
commit | 1c0e9ae7d6894723a87157e351340f2ef516831e (patch) | |
tree | 93aa133bd0e990a861d1ca528b72bdffe98a5ff3 /src/nm-logging.c | |
parent | 5d155987dcc982ff0c354686c0a6f35831a47176 (diff) | |
download | NetworkManager-1c0e9ae7d6894723a87157e351340f2ef516831e.tar.gz |
logging: fix a warning when built without journald
nm-logging.c:213:1: error: ‘syslog_identifier_full’ defined but not used [-Werror=unused-function]
syslog_identifier_full (const struct Global *gl)
^
Fixes: fd12aa1b20407bc455c7c03750344cc76cafd924
Diffstat (limited to 'src/nm-logging.c')
-rw-r--r-- | src/nm-logging.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nm-logging.c b/src/nm-logging.c index baa8198f8f..d0149ffebe 100644 --- a/src/nm-logging.c +++ b/src/nm-logging.c @@ -209,12 +209,14 @@ syslog_identifier_domain (const struct Global *gl) return &gl->syslog_identifier[NM_STRLEN ("SYSLOG_IDENTIFIER=")]; } +#if SYSTEMD_JOURNAL static const char * syslog_identifier_full (const struct Global *gl) { nm_assert (_syslog_identifier_assert (gl)); return &gl->syslog_identifier[0]; } +#endif void nm_logging_set_syslog_identifier (const char *domain) |