diff --git a/src/tail.c b/src/tail.c
index 7d77e253a49d6a13d4c5a99a50cd666ce3b9266e..02afd7910af42ed75229020b5c5c0ed0b85b8473 100644 (file)
--- a/src/tail.c
+++ b/src/tail.c
* Instance "exim"
* <Match>
* Regex "S=([1-9][0-9]*)"
- * DSType "CouterAdd"
+ * DSType "CounterAdd"
* Type "ipt_bytes"
* Instance "total"
* </Match>
else if (strncasecmp ("Counter", ci->values[0].value.string, strlen ("Counter")) == 0)
{
cm->flags = UTILS_MATCH_DS_TYPE_COUNTER;
- if (strcasecmp ("CouterSet", ci->values[0].value.string) == 0)
+ if (strcasecmp ("CounterSet", ci->values[0].value.string) == 0)
cm->flags |= UTILS_MATCH_CF_COUNTER_SET;
- else if (strcasecmp ("CouterAdd", ci->values[0].value.string) == 0)
+ else if (strcasecmp ("CounterAdd", ci->values[0].value.string) == 0)
cm->flags |= UTILS_MATCH_CF_COUNTER_ADD;
- else if (strcasecmp ("CouterInc", ci->values[0].value.string) == 0)
+ else if (strcasecmp ("CounterInc", ci->values[0].value.string) == 0)
cm->flags |= UTILS_MATCH_CF_COUNTER_INC;
else
cm->flags = 0;
static int ctail_read (void)
{
int success = 0;
- int i;
+ size_t i;
for (i = 0; i < tail_match_list_num; i++)
{
status = tail_match_read (tail_match_list[i]);
if (status != 0)
{
- ERROR ("tail plugin: tail_match_read[%i] failed.", i);
+ ERROR ("tail plugin: tail_match_read[%zu] failed.", i);
}
else
{
static int ctail_shutdown (void)
{
- int i;
+ size_t i;
for (i = 0; i < tail_match_list_num; i++)
{