X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fhddtemp.c;h=31960b54e9166b2d3be9eb20f82888668ceb90c0;hb=10139cda6f68ae1f921d79c930dd85944afb74a3;hp=865ea8614afda35cee5993eeec8cf61e86c6f8b6;hpb=f876292e5ce4be40ab5b031b2bcfb347f00da1f8;p=collectd.git diff --git a/src/hddtemp.c b/src/hddtemp.c index 865ea861..31960b54 100644 --- a/src/hddtemp.c +++ b/src/hddtemp.c @@ -226,12 +226,9 @@ static int hddtemp_config (const char *key, const char *value) static void hddtemp_submit (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, "hddtemp", sizeof (vl.plugin));