summaryrefslogtreecommitdiffstats
path: root/grammar
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-07-19 17:53:23 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-07-19 17:53:23 +0200
commit74c2e98c13daf60bf5371f77111196679dd7df55 (patch)
tree626bd38a186c4550db0c41d51dd128b0c99f9632 /grammar
parent47c961eac280f72a472ad82764f8fd450ba3643f (diff)
downloadrsyslog-74c2e98c13daf60bf5371f77111196679dd7df55.tar.gz
rsyslog-74c2e98c13daf60bf5371f77111196679dd7df55.tar.xz
rsyslog-74c2e98c13daf60bf5371f77111196679dd7df55.zip
milestone: glbl obj parameters settable via new conf interface
Diffstat (limited to 'grammar')
-rw-r--r--grammar/rainerscript.c2
-rw-r--r--grammar/rainerscript.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/grammar/rainerscript.c b/grammar/rainerscript.c
index 502deece..92b07a5f 100644
--- a/grammar/rainerscript.c
+++ b/grammar/rainerscript.c
@@ -158,6 +158,7 @@ nvlstFindNameCStr(struct nvlst *lst, char *name)
return lst;
}
+
/* check if there are duplicate names inside a nvlst and emit
* an error message, if so.
*/
@@ -247,6 +248,7 @@ nvlstGetParam(struct nvlst *valnode, struct cnfparamdescr *param,
{
dbgprintf("XXXX: in nvlstGetParam, name '%s', type %d\n",
param->name, (int) param->type);
+ valnode->bUsed = 1;
val->bUsed = 1;
switch(param->type) {
case eCmdHdlrUID:
diff --git a/grammar/rainerscript.h b/grammar/rainerscript.h
index 03e59895..f7454ef5 100644
--- a/grammar/rainerscript.h
+++ b/grammar/rainerscript.h
@@ -217,6 +217,7 @@ void readConfFile(FILE *fp, es_str_t **str);
struct nvlst* nvlstNew(es_str_t *name, es_str_t *value);
void nvlstDestruct(struct nvlst *lst);
void nvlstPrint(struct nvlst *lst);
+void nvlstChkUnused(struct nvlst *lst);
struct nvlst* nvlstFindName(struct nvlst *lst, es_str_t *name);
struct cnfobj* cnfobjNew(enum cnfobjType objType, struct nvlst *lst);
void cnfobjDestruct(struct cnfobj *o);