diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-18 15:16:15 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-18 15:16:15 +0000 |
commit | 4a963e5f1fdac9c1d4d404fe75ea2ceaf93ae37d (patch) | |
tree | 6d0d0382436109f21844ab952507e8eed42b4ec6 /template.c | |
parent | 48c0c81132fe0b4aadf46fd54fc5acd61bfbeffa (diff) | |
download | rsyslog-4a963e5f1fdac9c1d4d404fe75ea2ceaf93ae37d.tar.gz rsyslog-4a963e5f1fdac9c1d4d404fe75ea2ceaf93ae37d.tar.xz rsyslog-4a963e5f1fdac9c1d4d404fe75ea2ceaf93ae37d.zip |
code cleanup (removed compiler warnings
Diffstat (limited to 'template.c')
-rw-r--r-- | template.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -179,7 +179,7 @@ static void doOptions(unsigned char **pp, struct templateEntry *pTpe) { register unsigned char *p; unsigned char Buf[64]; - int i; + size_t i; assert(pp != NULL); assert(*pp != NULL); @@ -454,7 +454,7 @@ struct template *tplAddLine(char* pName, unsigned char** ppRestOfConfLine) unsigned char *p; int bDone; char optBuf[128]; /* buffer for options - should be more than enough... */ - int i; + size_t i; assert(pName != NULL); assert(ppRestOfConfLine != NULL); @@ -677,7 +677,8 @@ void tplDeleteNew(void) } /* Store the pointer to the last hardcoded teplate */ -void tplLastStaticInit(struct template *tpl) { +void tplLastStaticInit(struct template *tpl) +{ tplLastStatic = tpl; } |