X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftape.c;h=52da2bc69db465a6e99bf97e529f43c56a0cd5c8;hb=4d370741101aeb037ae52f3529a4a0869e0dc08a;hp=723ee7b8b04494ee5da0ac1570f7bfb48216c3c6;hpb=a5377cf935630082f2eac2e5f4a538844cc06c8d;p=collectd.git diff --git a/src/tape.c b/src/tape.c index 723ee7b8..52da2bc6 100644 --- a/src/tape.c +++ b/src/tape.c @@ -99,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); @@ -107,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;