diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-18 08:14:07 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-18 08:14:07 +0000 |
commit | 03a9aa66e2a38dc4f69a0db2f61861c3b17c7d2d (patch) | |
tree | 6e1b4b3c8e7cf747c2a24b54e7ab8186e8a4e4b8 /plugins | |
parent | 37dc5101883283ff2628e899449384154bcb8fcd (diff) | |
download | rsyslog-03a9aa66e2a38dc4f69a0db2f61861c3b17c7d2d.tar.gz rsyslog-03a9aa66e2a38dc4f69a0db2f61861c3b17c7d2d.tar.xz rsyslog-03a9aa66e2a38dc4f69a0db2f61861c3b17c7d2d.zip |
some cleanup
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/imklog/imklog.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/plugins/imklog/imklog.c b/plugins/imklog/imklog.c index 6e6f486d..00794a8b 100644 --- a/plugins/imklog/imklog.c +++ b/plugins/imklog/imklog.c @@ -114,7 +114,6 @@ static rsRetVal writeSyslogV(int iPRI, const char *szFmt, va_list va) int iLen; time_t tNow; char msgBuf[2048]; /* we use the same size as sysklogd to remain compatible */ - msg_t *pMsg; assert(szFmt != NULL); @@ -131,21 +130,6 @@ static rsRetVal writeSyslogV(int iPRI, const char *szFmt, va_list va) /* here we must create our message object and supply it to the message queue */ CHKiRet(parseAndSubmitMessage(LocalHostName, msgBuf, strlen(msgBuf), MSG_DONT_PARSE_HOSTNAME)); -#if 0 - CHKiRet(msgConstruct(&pMsg)); - MsgSetUxTradMsg(pMsg, msgBuf); - MsgSetRawMsg(pMsg, msgBuf); - MsgSetMSG(pMsg, (msgBuf + iLen)); - MsgSetHOSTNAME(pMsg, LocalHostName); - MsgSetTAG(pMsg, "kernel:"); - pMsg->iFacility = LOG_FAC(LOG_KERN); - pMsg->iSeverity = LOG_PRI(iPRI); - pMsg->bParseHOSTNAME = 0; - getCurrTime(&(pMsg->tTIMESTAMP)); /* use the current time! */ - - /* provide message to the queue engine */ - logmsg(pMsg, INTERNAL_MSG); -#endif finalize_it: RETiRet; |