diff options
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -37,7 +37,7 @@ #include <errno.h> #include <glib.h> -#ifdef HAVE_SYSLOG +#if HAVE_SYSLOG #include <syslog.h> #endif @@ -149,7 +149,7 @@ log_init_file(const char *path, unsigned line, GError **error_r) return true; } -#ifdef HAVE_SYSLOG +#if HAVE_SYSLOG static int glib_to_syslog_level(GLogLevelFlags log_level) @@ -254,7 +254,7 @@ log_init(bool verbose, bool use_stdout, GError **error_r) } else { param = config_get_param(CONF_LOG_FILE); if (param == NULL) { -#ifdef HAVE_SYSLOG +#if HAVE_SYSLOG /* no configuration: default to syslog (if available) */ log_init_syslog(); @@ -265,7 +265,7 @@ log_init(bool verbose, bool use_stdout, GError **error_r) CONF_LOG_FILE); return false; #endif -#ifdef HAVE_SYSLOG +#if HAVE_SYSLOG } else if (strcmp(param->value, "syslog") == 0) { log_init_syslog(); return true; @@ -333,7 +333,7 @@ void close_log_files(void) if (stdout_mode) return; -#ifdef HAVE_SYSLOG +#if HAVE_SYSLOG if (out_filename == NULL) closelog(); #endif |