summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-31 13:38:59 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-31 13:38:59 +0000
commit8987c38bbe11abca614e61b371dc57cb93b0802d (patch)
treebd13d933505d1b4d9013b5e164156b6a51091ed9 /plugins
parent70ad7a25eb52ab30b24ce5c3d8be4ff4ce68f412 (diff)
downloadrsyslog-8987c38bbe11abca614e61b371dc57cb93b0802d.tar.gz
rsyslog-8987c38bbe11abca614e61b371dc57cb93b0802d.tar.xz
rsyslog-8987c38bbe11abca614e61b371dc57cb93b0802d.zip
adopted to changed librelp interface
Diffstat (limited to 'plugins')
-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;
}