X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Firq.c;h=cb444a47309c1bad1701e7389acd9eec5a037f8f;hb=51bc7c4a5523f2b03c24e32064b28c7c8426534d;hp=93f3f53bea09b964db1f32109c88faf685465e15;hpb=c1219a1c9db2e8400e2ee94b87f86ccd441485d5;p=collectd.git diff --git a/src/irq.c b/src/irq.c index 93f3f53b..cb444a47 100644 --- a/src/irq.c +++ b/src/irq.c @@ -22,9 +22,9 @@ **/ #include "collectd.h" + #include "common.h" #include "plugin.h" -#include "configfile.h" #include "utils_ignorelist.h" #if !KERNEL_LINUX @@ -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));