Mercurial > dropbear
diff svr-session.c @ 1210:64a50eac1030
Moved usingsyslog from svr_runopts to runopts.
author | Konstantin Tokarev <ktokarev@smartlabs.tv> |
---|---|
date | Tue, 01 Dec 2015 21:52:38 +0300 |
parents | 43a8ea69b24c |
children | d058e15ea213 |
line wrap: on
line diff
--- a/svr-session.c Tue Dec 15 21:40:32 2015 +0800 +++ b/svr-session.c Tue Dec 01 21:52:38 2015 +0300 @@ -204,7 +204,7 @@ vsnprintf(printbuf, sizeof(printbuf), format, param); #ifndef DISABLE_SYSLOG - if (svr_opts.usingsyslog) { + if (opts.usingsyslog) { syslog(priority, "%s", printbuf); } #endif @@ -215,7 +215,7 @@ havetrace = debug_trace; #endif - if (!svr_opts.usingsyslog || havetrace) + if (!opts.usingsyslog || havetrace) { struct tm * local_tm = NULL; timesec = time(NULL);