From 03a9aa66e2a38dc4f69a0db2f61861c3b17c7d2d Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 18 Feb 2008 08:14:07 +0000 Subject: some cleanup --- plugins/imklog/imklog.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'plugins') 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; -- cgit