X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbind.c;h=09de4a3f7679bf8c94217e3d7a276f15a299dd79;hb=e1bfa71aca1f37c2f293dc9adb44065c6e7a9ad9;hp=7fda034968ffe5217a3a24bd493974c271124db7;hpb=7adc8768ee5f7276d1964da6d268effba557d3a5;p=collectd.git diff --git a/src/bind.c b/src/bind.c index 7fda0349..09de4a3f 100644 --- a/src/bind.c +++ b/src/bind.c @@ -39,7 +39,6 @@ #include "common.h" #include "plugin.h" -#include "configfile.h" /* Some versions of libcurl don't include this themselves and then don't have * fd_set available. */ @@ -248,12 +247,9 @@ static int memsummary_translation_table_length = static void submit (time_t ts, const char *plugin_instance, /* {{{ */ const char *type, const char *type_instance, value_t value) { - value_t values[1]; value_list_t vl = VALUE_LIST_INIT; - values[0] = value; - - vl.values = values; + vl.values = &value; vl.values_len = 1; if (config_parse_time) vl.time = TIME_T_TO_CDTIME_T (ts);