X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Firq.c;h=06c50ff3ab0962efa55ab8e9165edcb36b511ca3;hb=c76419c0cf983f1ecd3d36aa236cc4e3f9cff733;hp=0f1d3f0ce50954ffd7d4524a52cd36d5bd884744;hpb=7dcf9ab7675fe91d1bd74998f55031bc3b0480c0;p=collectd.git diff --git a/src/irq.c b/src/irq.c index 0f1d3f0c..06c50ff3 100644 --- a/src/irq.c +++ b/src/irq.c @@ -72,17 +72,13 @@ 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)); sstrncpy (vl.type, "irq", sizeof (vl.type)); sstrncpy (vl.type_instance, irq_name, sizeof (vl.type_instance));