X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Firq.c;h=cb444a47309c1bad1701e7389acd9eec5a037f8f;hb=d8429bfff10deb14bb48c248e3589a2916501ffd;hp=0f1d3f0ce50954ffd7d4524a52cd36d5bd884744;hpb=5523a080010dcb7a61dc0dccc3969a2a048e52f9;p=collectd.git diff --git a/src/irq.c b/src/irq.c index 0f1d3f0c..cb444a47 100644 --- a/src/irq.c +++ b/src/irq.c @@ -72,15 +72,12 @@ static int irq_config (const char *key, const char *value) static void irq_submit (const char *irq_name, derive_t value) { - value_t values[1]; value_list_t vl = VALUE_LIST_INIT; if (ignorelist_match (ignorelist, irq_name) != 0) return; - values[0].derive = value; - - vl.values = values; + vl.values = &(value_t) { .derive = value }; vl.values_len = 1; sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "irq", sizeof (vl.plugin));