X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Ftape.c;h=c95ebfb4edbe90c82098f4028f42751f74040058;hp=f59b7ea6b3860dc3892269b4455e398f31943323;hb=48efd3deb4c9139fd060ff3d289896e9031bcc7c;hpb=18bd5ab738b3746e39a95d2def13903f04e2386b diff --git a/src/tape.c b/src/tape.c index f59b7ea6..c95ebfb4 100644 --- a/src/tape.c +++ b/src/tape.c @@ -22,8 +22,8 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #if !HAVE_LIBKSTAT #error "No applicable input method." @@ -36,7 +36,7 @@ #define MAX_NUMTAPE 256 extern kstat_ctl_t *kc; static kstat_t *ksp[MAX_NUMTAPE]; -static int numtape = 0; +static int numtape; static int tape_init(void) { kstat_t *ksp_chain; @@ -63,7 +63,8 @@ static void tape_submit(const char *plugin_instance, const char *type, derive_t read, derive_t write) { value_list_t vl = VALUE_LIST_INIT; value_t values[] = { - {.derive = read}, {.derive = write}, + {.derive = read}, + {.derive = write}, }; vl.values = values;