X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftape.c;h=52da2bc69db465a6e99bf97e529f43c56a0cd5c8;hb=43954e07f30d05b2da8319749400c9bf4d01c23c;hp=a8e7dc45faab08bdf18ffd42fbebd242f3f3477f;hpb=50c6b81549e3239034f71f00ff7dde4c6a8767e5;p=collectd.git diff --git a/src/tape.c b/src/tape.c index a8e7dc45..52da2bc6 100644 --- a/src/tape.c +++ b/src/tape.c @@ -21,6 +21,7 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" @@ -98,7 +99,6 @@ static int tape_read (void) # error "kstat_io_t does not have the required members" #endif static kstat_io_t kio; - int i; if (kc == NULL) return (-1); @@ -106,7 +106,7 @@ static int tape_read (void) if (numtape <= 0) return (-1); - for (i = 0; i < numtape; i++) + for (int i = 0; i < numtape; i++) { if (kstat_read (kc, ksp[i], &kio) == -1) continue;