X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fethstat.c;h=f0b8d9f01f6d87c779d56e3d95cf0e5b4384b7cb;hb=e1bfa71aca1f37c2f293dc9adb44065c6e7a9ad9;hp=a213b60a684a0b5652328912957ab797dc2e8737;hpb=da612fa9c6a3343b43789569d64197d7c690be52;p=collectd.git diff --git a/src/ethstat.c b/src/ethstat.c index a213b60a..f0b8d9f0 100644 --- a/src/ethstat.c +++ b/src/ethstat.c @@ -26,7 +26,6 @@ #include "common.h" #include "plugin.h" -#include "configfile.h" #include "utils_avltree.h" #include "utils_complain.h" @@ -173,7 +172,6 @@ static void ethstat_submit_value (const char *device, { static c_complain_t complain_no_map = C_COMPLAIN_INIT_STATIC; - value_t values[1]; value_list_t vl = VALUE_LIST_INIT; value_map_t *map = NULL; @@ -190,8 +188,7 @@ static void ethstat_submit_value (const char *device, 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));