summaryrefslogtreecommitdiffhomepage
path: root/svr-session.c
diff options
context:
space:
mode:
authorKonstantin Tokarev <ktokarev@smartlabs.tv>2015-12-01 21:52:38 +0300
committerKonstantin Tokarev <ktokarev@smartlabs.tv>2015-12-15 16:43:29 +0300
commit2d6bbf341d0554fb33179dfe7757b6e22f993fe6 (patch)
tree6ec92058e22c58be81d4d169c9f9eaea54ceab65 /svr-session.c
parent2f62128297bc22c22f0da6617eeae53a1cd90dd2 (diff)
Moved usingsyslog from svr_runopts to runopts.
Diffstat (limited to 'svr-session.c')
-rw-r--r--svr-session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-session.c b/svr-session.c
index ea9ca7e..c378562 100644
--- a/svr-session.c
+++ b/svr-session.c
@@ -204,7 +204,7 @@ void svr_dropbear_log(int priority, const char* format, va_list param) {
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 @@ void svr_dropbear_log(int priority, const char* format, va_list param) {
havetrace = debug_trace;
#endif
- if (!svr_opts.usingsyslog || havetrace)
+ if (!opts.usingsyslog || havetrace)
{
struct tm * local_tm = NULL;
timesec = time(NULL);