diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-31 13:38:59 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-31 13:38:59 +0000 |
commit | 8987c38bbe11abca614e61b371dc57cb93b0802d (patch) | |
tree | bd13d933505d1b4d9013b5e164156b6a51091ed9 /plugins/imrelp | |
parent | 70ad7a25eb52ab30b24ce5c3d8be4ff4ce68f412 (diff) | |
download | rsyslog-8987c38bbe11abca614e61b371dc57cb93b0802d.tar.gz rsyslog-8987c38bbe11abca614e61b371dc57cb93b0802d.tar.xz rsyslog-8987c38bbe11abca614e61b371dc57cb93b0802d.zip |
adopted to changed librelp interface
Diffstat (limited to 'plugins/imrelp')
-rw-r--r-- | plugins/imrelp/imrelp.c | 5 |
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; } |