summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-21 16:03:04 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-21 16:03:04 +0000
commit1a01a7951f3ed4539ee1e563e15f68fde0ff54fc (patch)
treed954dc428755036b33a952ecf5a854e6c1076ca6 /plugins
parent3e4da6f1cc1e462c3a2f58b0587cef4e0028b137 (diff)
downloadrsyslog-1a01a7951f3ed4539ee1e563e15f68fde0ff54fc.tar.gz
rsyslog-1a01a7951f3ed4539ee1e563e15f68fde0ff54fc.tar.xz
rsyslog-1a01a7951f3ed4539ee1e563e15f68fde0ff54fc.zip
fixed some problems in initial imrelp implementation
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imrelp/imrelp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/imrelp/imrelp.c b/plugins/imrelp/imrelp.c
index 371de737..0cb69cdc 100644
--- a/plugins/imrelp/imrelp.c
+++ b/plugins/imrelp/imrelp.c
@@ -81,7 +81,7 @@ static relpRetVal
onSyslogRcv(uchar *pMsg, size_t lenMsg)
{
DEFiRet;
- parseAndSubmitMessage("TODO:HOSTNAME", pMsg, lenMsg, MSG_PARSE_HOSTNAME, NOFLAG, eFLOWCTL_LIGHT_DELAY);
+ parseAndSubmitMessage("TODO:HOSTNAME", (char*)pMsg, lenMsg, MSG_PARSE_HOSTNAME, NOFLAG, eFLOWCTL_LIGHT_DELAY);
RETiRet;
}
@@ -96,7 +96,7 @@ static rsRetVal addListener(void __attribute__((unused)) *pVal, uchar *pNewVal)
if(pRelpEngine == NULL) {
CHKiRet(relpEngineConstruct(&pRelpEngine));
CHKiRet(relpEngineSetDbgprint(pRelpEngine, dbgprintf));
- CHKiRet(relpEngineSetSyslogRcv(pRelpEngine, dbgprintf));
+ CHKiRet(relpEngineSetSyslogRcv(pRelpEngine, onSyslogRcv));
}
CHKiRet(relpEngineAddListner(pRelpEngine, pNewVal));