X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flvm.c;h=77cb6eb885c1e6afcbe62b40a60169f3d24ca66e;hb=51bc7c4a5523f2b03c24e32064b28c7c8426534d;hp=9e245423fef2c829d842619a3a77ee8213864ae4;hpb=cedb6f147e94d0e952449f731313412ef4d67904;p=collectd.git diff --git a/src/lvm.c b/src/lvm.c index 9e245423..77cb6eb8 100644 --- a/src/lvm.c +++ b/src/lvm.c @@ -24,6 +24,7 @@ #include #include "collectd.h" + #include "common.h" #include "plugin.h" @@ -54,12 +55,9 @@ static char const *get_lv_property_string(lv_t lv, char const *property) static void lvm_submit (char const *plugin_instance, char const *type_instance, uint64_t ivalue) { - value_t v; value_list_t vl = VALUE_LIST_INIT; - v.gauge = (gauge_t) ivalue; - - vl.values = &v; + vl.values = &(value_t) { .gauge = (gauge_t) ivalue }; vl.values_len = 1; sstrncpy(vl.host, hostname_g, sizeof (vl.host));