diff options
Diffstat (limited to 'accel-pppd/logs/log_syslog.c')
-rw-r--r-- | accel-pppd/logs/log_syslog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/logs/log_syslog.c b/accel-pppd/logs/log_syslog.c index b0b079aa..36c8775b 100644 --- a/accel-pppd/logs/log_syslog.c +++ b/accel-pppd/logs/log_syslog.c @@ -55,7 +55,7 @@ static void set_hdr(struct log_msg_t *msg, struct ap_session *ses) if (ses) { if (snprintf(msg->hdr->msg, LOG_CHUNK_SIZE, "%s:%s: ", ses->ifname, ses->username ? ses->username : "")) strcpy(msg->hdr->msg + LOG_CHUNK_SIZE - 3, ": "); - } else + } else msg->hdr->msg[0] = 0; } @@ -123,7 +123,7 @@ static void syslog_close(struct triton_context_t *ctx) if (sleeping) { triton_context_unregister(&syslog_ctx); } else - need_close = 1; + need_close = 1; spin_unlock(&queue_lock); } |