X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmbmon.c;h=87e54fa18406dd44a4d07a2822b00a90c79083fe;hb=c76419c0cf983f1ecd3d36aa236cc4e3f9cff733;hp=184bb9942a7b32f62c2a74a56499b6b1e1a87166;hpb=ec9ed6fe4108f7fd3d4ef84e887bb6d3dc022e14;p=collectd.git diff --git a/src/mbmon.c b/src/mbmon.c index 184bb994..87e54fa1 100644 --- a/src/mbmon.c +++ b/src/mbmon.c @@ -27,7 +27,6 @@ #include "common.h" #include "plugin.h" -#include "configfile.h" #include #include @@ -219,14 +218,10 @@ static int mbmon_config (const char *key, const char *value) static void mbmon_submit (const char *type, const char *type_instance, double value) { - value_t values[1]; value_list_t vl = VALUE_LIST_INIT; - values[0].gauge = value; - - vl.values = values; + vl.values = &(value_t) { .gauge = value }; vl.values_len = 1; - sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "mbmon", sizeof (vl.plugin)); sstrncpy (vl.type, type, sizeof (vl.type)); sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance));