summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-05 16:37:16 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-05 16:37:16 +0000
commit1560e84ff87dafd0d8b4fef3294a7a412e95b1c3 (patch)
treebf5c11bc46e720b0270889375522dbb19dbef336 /syslogd.c
parent23910636176e49b47cb7c110c09dbbe0c7bdc9ca (diff)
downloadrsyslog-1560e84ff87dafd0d8b4fef3294a7a412e95b1c3.tar.gz
rsyslog-1560e84ff87dafd0d8b4fef3294a7a412e95b1c3.tar.xz
rsyslog-1560e84ff87dafd0d8b4fef3294a7a412e95b1c3.zip
moved date/time handling functions to their own object (2nd pass)
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/syslogd.c b/syslogd.c
index e4685715..edbeddfe 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -913,7 +913,7 @@ logmsgInternal(int pri, char *msg, int flags)
pMsg->iFacility = LOG_FAC(pri);
pMsg->iSeverity = LOG_PRI(pri);
pMsg->bParseHOSTNAME = 0;
- getCurrTime(&(pMsg->tTIMESTAMP)); /* use the current time! */
+ datetime.getCurrTime(&(pMsg->tTIMESTAMP)); /* use the current time! */
flags |= INTERNAL_MSG;
if(bHaveMainQueue == 0) { /* not yet in queued mode */
@@ -1318,7 +1318,7 @@ static int parseRFCSyslogMsg(msg_t *pMsg, int flags)
}
if (flags & ADDDATE) {
- getCurrTime(&(pMsg->tTIMESTAMP)); /* use the current time! */
+ datetime.getCurrTime(&(pMsg->tTIMESTAMP)); /* use the current time! */
}
/* HOSTNAME */
@@ -1402,7 +1402,7 @@ static int parseLegacySyslogMsg(msg_t *pMsg, int flags)
* rgerhards 2004-12-03
*/
if(flags & ADDDATE) {
- getCurrTime(&(pMsg->tTIMESTAMP)); /* use the current time! */
+ datetime.getCurrTime(&(pMsg->tTIMESTAMP)); /* use the current time! */
}
/* rgerhards, 2006-03-13: next, we parse the hostname and tag. But we