summaryrefslogtreecommitdiff
path: root/debug_syslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug_syslog.c')
-rw-r--r--debug_syslog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/debug_syslog.c b/debug_syslog.c
index 595304e..9a2afbd 100644
--- a/debug_syslog.c
+++ b/debug_syslog.c
@@ -38,6 +38,8 @@
#include <netinet/in.h>
#include <errno.h>
+#include "debug_util.h"
+
#ifndef WITH_DBG_SYSLOG
#warning debug_syslog.c compiled but WITH_DBG_SYSLOG not defined
#endif
@@ -187,7 +189,7 @@ void dbg_syslog_output(char* msg)
const time_t rawtime = time(NULL);
struct tm time;
- localtime_r(&rawtime, &time);
+ dbg_localtime(&rawtime, &time);
char buftime[SYSLOG_TIMELEN];
strftime(buftime, SYSLOG_TIMELEN, "%b %e %H:%M:%S ", &time);