X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fascent.c;h=74cef333ee1174ee2209edd4885b23280a0b6966;hb=ff59046e8694bde7f4b965a5f6e35ed325572c82;hp=c41c896fa2c6fc752f5df21a2a707c37f3334cfa;hpb=eeb544426d73da7993a24372dd4cd9fb8cca9627;p=collectd.git diff --git a/src/ascent.c b/src/ascent.c index c41c896f..74cef333 100644 --- a/src/ascent.c +++ b/src/ascent.c @@ -110,14 +110,10 @@ static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); static int ascent_submit_gauge(const char *plugin_instance, /* {{{ */ const char *type, const char *type_instance, gauge_t 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, "ascent", sizeof(vl.plugin)); if (plugin_instance != NULL)