summaryrefslogtreecommitdiffstats
path: root/plugins/imfile/imfile.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-05-25 14:20:45 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-05-25 14:20:45 +0200
commita853542b76cdd5604f11aa431867b9693b16e45f (patch)
treee19337d9e942ee0bc62fb08a60e0470b4868a344 /plugins/imfile/imfile.c
parent1a0b77dc7154deea77dc4ca6417ff5ff62ff2ce7 (diff)
parentb9549380270fa68e27e8ee3f049c7d34156a85ff (diff)
downloadrsyslog-a853542b76cdd5604f11aa431867b9693b16e45f.tar.gz
rsyslog-a853542b76cdd5604f11aa431867b9693b16e45f.tar.bz2
rsyslog-a853542b76cdd5604f11aa431867b9693b16e45f.zip
Merge branch 'master' into solaris
Diffstat (limited to 'plugins/imfile/imfile.c')
-rw-r--r--plugins/imfile/imfile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/imfile/imfile.c b/plugins/imfile/imfile.c
index b0211bf6..92fd30c3 100644
--- a/plugins/imfile/imfile.c
+++ b/plugins/imfile/imfile.c
@@ -45,6 +45,7 @@
#include "errmsg.h"
#include "glbl.h"
#include "datetime.h"
+#include "unicode-helper.h"
MODULE_TYPE_INPUT /* must be present for input modules, do not remove */
@@ -94,11 +95,11 @@ static rsRetVal enqLine(fileInfo_t *pInfo, cstr_t *cstrLine)
CHKiRet(msgConstruct(&pMsg));
MsgSetFlowControlType(pMsg, eFLOWCTL_FULL_DELAY);
- MsgSetInputName(pMsg, "imfile");
+ MsgSetInputName(pMsg, UCHAR_CONSTANT("imfile"));
MsgSetUxTradMsg(pMsg, (char*)rsCStrGetSzStr(cstrLine));
MsgSetRawMsg(pMsg, (char*)rsCStrGetSzStr(cstrLine));
MsgSetMSG(pMsg, (char*)rsCStrGetSzStr(cstrLine));
- MsgSetHOSTNAME(pMsg, (char*)glbl.GetLocalHostName());
+ MsgSetHOSTNAME(pMsg, glbl.GetLocalHostName());
MsgSetTAG(pMsg, (char*)pInfo->pszTag);
pMsg->iFacility = LOG_FAC(pInfo->iFacility);
pMsg->iSeverity = LOG_PRI(pInfo->iSeverity);