diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-08-27 17:16:25 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-08-27 17:16:25 +0200 |
commit | 2a4e1c12f235d6914d650dd29d56df152b014209 (patch) | |
tree | 3c9f7208c33deb589b2c329a9d9cb68d674680ae /runtime/rsconf.c | |
parent | 1f3d7e3a9d71d0c494db0de42709a700b34d786d (diff) | |
parent | 2514bccdccaebe128055ffa0dc5132b4f4c48635 (diff) | |
download | rsyslog-2a4e1c12f235d6914d650dd29d56df152b014209.tar.gz rsyslog-2a4e1c12f235d6914d650dd29d56df152b014209.tar.bz2 rsyslog-2a4e1c12f235d6914d650dd29d56df152b014209.zip |
Merge branch 'master' into v7-devel
Conflicts:
runtime/msg.c
Diffstat (limited to 'runtime/rsconf.c')
-rw-r--r-- | runtime/rsconf.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/runtime/rsconf.c b/runtime/rsconf.c index bd002353..5d2407ec 100644 --- a/runtime/rsconf.c +++ b/runtime/rsconf.c @@ -66,6 +66,7 @@ #include "parserif.h" #include "modules.h" #include "dirty.h" +#include "template.h" /* static data */ DEFobjStaticHelpers @@ -386,6 +387,8 @@ yyerror(char *s) } void cnfDoObj(struct cnfobj *o) { + int bChkUnuse = 1; + dbgprintf("cnf:global:obj: "); cnfobjPrint(o); switch(o->objType) { @@ -398,8 +401,17 @@ void cnfDoObj(struct cnfobj *o) case CNFOBJ_ACTION: actionProcessCnf(o); break; + case CNFOBJ_TPL: + tplProcessCnf(o); + break; + case CNFOBJ_PROPERTY: + case CNFOBJ_CONSTANT: + /* these types are processed at a later stage */ + bChkUnuse = 0; + break; } - nvlstChkUnused(o->nvlst); + if(bChkUnuse) + nvlstChkUnused(o->nvlst); cnfobjDestruct(o); } |