X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftail.c;h=02afd7910af42ed75229020b5c5c0ed0b85b8473;hb=108068f268cad453e5d3b54e288917409db1e467;hp=01bf6292ac2d1583796d42d387a69b4080d6752f;hpb=b88f9d8a83ff838523a21e4b191f447888d651cd;p=collectd.git diff --git a/src/tail.c b/src/tail.c index 01bf6292..02afd791 100644 --- a/src/tail.c +++ b/src/tail.c @@ -305,7 +305,7 @@ static int ctail_init (void) static int ctail_read (void) { int success = 0; - int i; + size_t i; for (i = 0; i < tail_match_list_num; i++) { @@ -314,7 +314,7 @@ static int ctail_read (void) 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 { @@ -329,7 +329,7 @@ static int ctail_read (void) static int ctail_shutdown (void) { - int i; + size_t i; for (i = 0; i < tail_match_list_num; i++) {