diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2004-11-19 11:09:55 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2004-11-19 11:09:55 +0000 |
commit | df4d27d7532268a278668983fe11c7f1d384227e (patch) | |
tree | 917d3bb6793afc2dc650b21429d1929ae1bb6f27 /template.c | |
parent | 68a33eaca9d98428904b87fddc86a90396af3231 (diff) | |
download | rsyslog-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |