summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/imrelp/imrelp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/imrelp/imrelp.c b/plugins/imrelp/imrelp.c
index 99a8d315..c67da6eb 100644
--- a/plugins/imrelp/imrelp.c
+++ b/plugins/imrelp/imrelp.c
@@ -78,10 +78,11 @@ isPermittedHost(struct sockaddr *addr, char *fromHostFQDN, void __attribute__((u
* rgerhards, 2008-03-21
*/
static relpRetVal
-onSyslogRcv(uchar *pMsg, size_t lenMsg)
+onSyslogRcv(uchar *pHostname, uchar __attribute__((unused)) *pIP, uchar *pMsg, size_t lenMsg)
{
DEFiRet;
- parseAndSubmitMessage("TODO:HOSTNAME", (char*)pMsg, lenMsg, MSG_PARSE_HOSTNAME, NOFLAG, eFLOWCTL_LIGHT_DELAY);
+ parseAndSubmitMessage((char*)pHostname, (char*)pMsg, lenMsg, MSG_PARSE_HOSTNAME,
+ NOFLAG, eFLOWCTL_LIGHT_DELAY);
RETiRet;
}