projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
write_tsdb: enable TCP keepalive on network socket
[collectd.git]
/
src
/
tape.c
diff --git
a/src/tape.c
b/src/tape.c
index
a8e7dc4
..
52da2bc
100644
(file)
--- a/
src/tape.c
+++ b/
src/tape.c
@@
-21,6
+21,7
@@
**/
#include "collectd.h"
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.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;
# 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);
@@
-106,7
+106,7
@@
static int tape_read (void)
if (numtape <= 0)
return (-1);
if (numtape <= 0)
return (-1);
- for (i = 0; i < numtape; i++)
+ for (i
nt i
= 0; i < numtape; i++)
{
if (kstat_read (kc, ksp[i], &kio) == -1)
continue;
{
if (kstat_read (kc, ksp[i], &kio) == -1)
continue;