diff --git a/src/tape.c b/src/tape.c
index a8e7dc45faab08bdf18ffd42fbebd242f3f3477f..52da2bc69db465a6e99bf97e529f43c56a0cd5c8 100644 (file)
--- a/src/tape.c
+++ b/src/tape.c
**/
#include "collectd.h"
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
#include "common.h"
#include "plugin.h"
# error "kstat_io_t does not have the required members"
#endif
static kstat_io_t kio;
# error "kstat_io_t does not have the required members"
#endif
static kstat_io_t kio;
- int i;
if (kc == NULL)
return (-1);
if (kc == NULL)
return (-1);
if (numtape <= 0)
return (-1);
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;
{
if (kstat_read (kc, ksp[i], &kio) == -1)
continue;