diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-11-27 16:47:49 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-11-27 16:47:49 +0100 |
commit | aaeb1945a7b7f8534edc04a03912c7942322fb83 (patch) | |
tree | 44b0b652a41ed429e7dec19a4d9d11aba7f064ea /plugins/mmnormalize/mmnormalize.c | |
parent | 7893c9b19d8f13a8037c6be4ebc2052701d3af37 (diff) | |
download | rsyslog-aaeb1945a7b7f8534edc04a03912c7942322fb83.tar.gz rsyslog-aaeb1945a7b7f8534edc04a03912c7942322fb83.tar.bz2 rsyslog-aaeb1945a7b7f8534edc04a03912c7942322fb83.zip |
bugfix: mmnormalize build problems
Diffstat (limited to 'plugins/mmnormalize/mmnormalize.c')
-rw-r--r-- | plugins/mmnormalize/mmnormalize.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/mmnormalize/mmnormalize.c b/plugins/mmnormalize/mmnormalize.c index 1aef98eb..36d8c9fb 100644 --- a/plugins/mmnormalize/mmnormalize.c +++ b/plugins/mmnormalize/mmnormalize.c @@ -104,13 +104,13 @@ buildInstance(instanceData *pData) { DEFiRet; if((pData->ctxee = ee_initCtx()) == NULL) { - errmsg.LogError(0, RS_RET_LIBEE_INIT, "error: could not initialize libee " + errmsg.LogError(0, RS_RET_ERR_LIBEE_INIT, "error: could not initialize libee " "ctx, cannot activate action"); ABORT_FINALIZE(RS_RET_ERR_LIBEE_INIT); } if((pData->ctxln = ln_initCtx()) == NULL) { - errmsg.LogError(0, RS_RET_LIBLOGNORM_INIT, "error: could not initialize " + errmsg.LogError(0, RS_RET_ERR_LIBLOGNORM_INIT, "error: could not initialize " "liblognorm ctx, cannot activate action"); ee_exitCtx(pData->ctxee); ABORT_FINALIZE(RS_RET_ERR_LIBLOGNORM_INIT); @@ -165,7 +165,6 @@ ENDactivateCnf BEGINfreeCnf CODESTARTfreeCnf - free(pModConf->tplName); ENDfreeCnf @@ -249,9 +248,7 @@ setInstParamDefaults(instanceData *pData) BEGINnewActInst struct cnfparamvals *pvals; - uchar *tplToUse; int i; - rsRetVal localRet; CODESTARTnewActInst DBGPRINTF("newActInst (mmnormalize)\n"); @@ -274,7 +271,7 @@ CODESTARTnewActInst if(!pvals[i].bUsed) continue; if(!strcmp(actpblk.descr[i].name, "rulebase")) { - pData->rulebase = es_str2cstr(pvals[i].val.d.estr, NULL); + pData->rulebase = (uchar*)es_str2cstr(pvals[i].val.d.estr, NULL); } else if(!strcmp(actpblk.descr[i].name, "userawmsg")) { pData->bUseRawMsg = (int) pvals[i].val.d.n; } else { |