X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Flvm.c;h=e43bf03448afe57996faeda353bd37bd393d3b68;hb=b968fcbd88a56a2d4d9950ad1e2ea8e144ffed10;hp=9e245423fef2c829d842619a3a77ee8213864ae4;hpb=fc6f1e3d33d646391adb5cedc62e7b3904c15003;p=collectd.git diff --git a/src/lvm.c b/src/lvm.c index 9e245423..e43bf034 100644 --- a/src/lvm.c +++ b/src/lvm.c @@ -18,12 +18,13 @@ * * Authors: * Chad Malfait - * Benjamin Gilbert + * Benjamin Gilbert **/ #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));