diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-17 10:58:30 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-17 10:58:30 +0200 |
commit | e1791996b81b486e53a36ec753c3bb595f671983 (patch) | |
tree | 67f468124cda86d5898a755b9026c8b936925bed /plugins/imfile/imfile.c | |
parent | 4824e56aed37b5edffc883cb53c91f0b61c3df62 (diff) | |
download | rsyslog-e1791996b81b486e53a36ec753c3bb595f671983.tar.gz rsyslog-e1791996b81b486e53a36ec753c3bb595f671983.tar.xz rsyslog-e1791996b81b486e53a36ec753c3bb595f671983.zip |
moved host/domain-name related variables to global data pool
Diffstat (limited to 'plugins/imfile/imfile.c')
-rw-r--r-- | plugins/imfile/imfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/imfile/imfile.c b/plugins/imfile/imfile.c index f95f9bc4..a5f1cc8f 100644 --- a/plugins/imfile/imfile.c +++ b/plugins/imfile/imfile.c @@ -97,7 +97,7 @@ static rsRetVal enqLine(fileInfo_t *pInfo, cstr_t *cstrLine) MsgSetUxTradMsg(pMsg, (char*)rsCStrGetSzStr(cstrLine)); MsgSetRawMsg(pMsg, (char*)rsCStrGetSzStr(cstrLine)); MsgSetMSG(pMsg, (char*)rsCStrGetSzStr(cstrLine)); - MsgSetHOSTNAME(pMsg, (char*)LocalHostName); + MsgSetHOSTNAME(pMsg, (char*)glbl.GetLocalHostName()); MsgSetTAG(pMsg, (char*)pInfo->pszTag); pMsg->iFacility = LOG_FAC(pInfo->iFacility); pMsg->iSeverity = LOG_PRI(pInfo->iSeverity); |