From 82c78b3b9dc5000af2294ce2010cf137dc8fa9ec Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Wed, 18 Feb 2004 15:42:31 +1100 Subject: [PATCH] - (djm) [log.c] Correct use of HAVE_OPENLOG_R --- ChangeLog | 3 ++- log.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f5a5e5670..e46b10ff6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ [sshd_config.5] remove cruft left over from RhostsAuthentication removal; ok markus@ + - (djm) [log.c] Correct use of HAVE_OPENLOG_R 20040217 - (djm) Simplify the license on code I have written. No code changes. @@ -1881,4 +1882,4 @@ - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. Report from murple@murple.net, diagnosis from dtucker@zip.com.au -$Id: ChangeLog,v 1.3237 2004/02/18 03:31:23 djm Exp $ +$Id: ChangeLog,v 1.3238 2004/02/18 04:42:31 djm Exp $ diff --git a/log.c b/log.c index 686a2a43c..e4ea99589 100644 --- a/log.c +++ b/log.c @@ -265,7 +265,7 @@ log_init(char *av0, LogLevel level, SyslogFacility facility, int on_stderr) void do_log(LogLevel level, const char *fmt, va_list args) { -#ifdef OPENLOG_R +#ifdef HAVE_OPENLOG_R struct syslog_data sdata = SYSLOG_DATA_INIT; #endif char msgbuf[MSGBUFSIZ]; @@ -321,7 +321,7 @@ do_log(LogLevel level, const char *fmt, va_list args) snprintf(msgbuf, sizeof msgbuf, "%s\r\n", fmtbuf); write(STDERR_FILENO, msgbuf, strlen(msgbuf)); } else { -#ifdef OPENLOG_R +#ifdef HAVE_OPENLOG_R openlog_r(argv0 ? argv0 : __progname, LOG_PID, log_facility, &sdata); syslog_r(pri, &sdata, "%.500s", fmtbuf); closelog_r(&sdata);