diff options
author | Damien Miller <djm@mindrot.org> | 2004-02-18 05:42:31 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2004-02-18 05:42:31 +0100 |
commit | 82c78b3b9dc5000af2294ce2010cf137dc8fa9ec (patch) | |
tree | 0bc701175d2390385e3f83e460e8eada4a858601 /log.c | |
parent | - jmc@cvs.openbsd.org 2004/02/17 19:35:21 (diff) | |
download | openssh-82c78b3b9dc5000af2294ce2010cf137dc8fa9ec.tar.xz openssh-82c78b3b9dc5000af2294ce2010cf137dc8fa9ec.zip |
- (djm) [log.c] Correct use of HAVE_OPENLOG_R
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |