diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 38 |
1 files changed, 2 insertions, 36 deletions
@@ -3,7 +3,7 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -40,7 +40,6 @@ #include <mailutils/argp.h> #include "mailfromd.h" -#include <version-etc.h> /* Configurable options */ @@ -124,9 +123,7 @@ time_t response_timeout = 30; int syslog_printer (int prio, const char *fmt, va_list ap) { -#ifdef USE_SYSLOG_ASYNC - vsyslog_async (prio, fmt, ap); -#elif HAVE_VSYSLOG +#if HAVE_VSYSLOG vsyslog (prio, fmt, ap); #else char buf[128]; @@ -136,32 +133,6 @@ syslog_printer (int prio, const char *fmt, va_list ap) return 0; } -#ifdef USE_SYSLOG_ASYNC -void -mf_gacopyz_syslog_async_log_printer(int level, char *fmt, va_list ap) -{ - switch (level) { - case SMI_LOG_DEBUG: - level = LOG_DEBUG; - break; - case SMI_LOG_INFO: - level = LOG_INFO; - break; - case SMI_LOG_WARN: - level = LOG_WARNING; - break; - case SMI_LOG_ERR: - level = LOG_ERR; - break; - - case SMI_LOG_FATAL: - default: - level = LOG_EMERG; - } - vsyslog_async(level, fmt, ap); -} -#endif - int syslog_error_printer (const char *fmt, va_list ap) { @@ -1708,12 +1679,7 @@ log_setup(int want_stderr) { /* Set up logging */ if (!want_stderr) { -#ifdef USE_SYSLOG_ASYNC - openlog_async(syslog_tag, LOG_PID, log_facility); - gacopyz_set_logger (mf_gacopyz_syslog_async_log_printer); -#else openlog(syslog_tag, LOG_PID, log_facility); -#endif mu_error_set_print(syslog_error_printer); } else { gacopyz_set_logger(gacopyz_stderr_log_printer); |