summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2004-11-19 11:09:55 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2004-11-19 11:09:55 +0000
commitdf4d27d7532268a278668983fe11c7f1d384227e (patch)
tree917d3bb6793afc2dc650b21429d1929ae1bb6f27 /template.c
parent68a33eaca9d98428904b87fddc86a90396af3231 (diff)
downloadrsyslog-df4d27d7532268a278668983fe11c7f1d384227e.tar.gz
rsyslog-df4d27d7532268a278668983fe11c7f1d384227e.tar.xz
rsyslog-df4d27d7532268a278668983fe11c7f1d384227e.zip
fixing upload error - template parser also ok
Diffstat (limited to 'template.c')
-rw-r--r--template.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/template.c b/template.c
index b3c5853a..3b0f3d16 100644
--- a/template.c
+++ b/template.c
@@ -167,7 +167,7 @@ static int do_Parameter(char **pp, struct template *pTpl)
return 1;
}
pTpe->eEntryType = FIELD;
- pTpe->data.pPropRepl = sbStrBFinish(pStrB);
+ pTpe->data.field.pPropRepl = sbStrBFinish(pStrB);
*pp = p;
return 0;
@@ -292,7 +292,7 @@ void tplPrintList(void)
dprintf("Template: Name='%s'\n", pTpl->pszName == NULL? "NULL" : pTpl->pszName);
pTpe = pTpl->pEntryRoot;
while(pTpe != NULL) {
- dprintf("\tEntry: type %d, ", pTpe->eEntryType);
+ dprintf("\tEntry(%x): type %d, ", (unsigned) pTpe, pTpe->eEntryType);
switch(pTpe->eEntryType) {
case UNDEFINED:
dprintf("(UNDEFINED)\n");
@@ -302,7 +302,7 @@ void tplPrintList(void)
pTpe->data.constant.pConstant);
break;
case FIELD:
- dprintf("(FIELD), value: '%s'\n", pTpe->data.pPropRepl);
+ dprintf("(FIELD), value: '%s'\n", pTpe->data.field.pPropRepl);
break;
}
pTpe = pTpe->pNext;