summaryrefslogtreecommitdiffstats
path: root/template.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-18 15:16:15 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-18 15:16:15 +0000
commit4a963e5f1fdac9c1d4d404fe75ea2ceaf93ae37d (patch)
tree6d0d0382436109f21844ab952507e8eed42b4ec6 /template.c
parent48c0c81132fe0b4aadf46fd54fc5acd61bfbeffa (diff)
downloadrsyslog-4a963e5f1fdac9c1d4d404fe75ea2ceaf93ae37d.tar.gz
rsyslog-4a963e5f1fdac9c1d4d404fe75ea2ceaf93ae37d.tar.xz
rsyslog-4a963e5f1fdac9c1d4d404fe75ea2ceaf93ae37d.zip
code cleanup (removed compiler warnings
Diffstat (limited to 'template.c')
-rw-r--r--template.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/template.c b/template.c
index 495597ac..f8a0d0ca 100644
--- a/template.c
+++ b/template.c
@@ -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;
}