projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'pr/1649'
[collectd.git]
/
src
/
ethstat.c
diff --git
a/src/ethstat.c
b/src/ethstat.c
index
d0e7728
..
f0b8d9f
100644
(file)
--- a/
src/ethstat.c
+++ b/
src/ethstat.c
@@
-172,7
+172,6
@@
static void ethstat_submit_value (const char *device,
{
static c_complain_t complain_no_map = C_COMPLAIN_INIT_STATIC;
{
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;
value_list_t vl = VALUE_LIST_INIT;
value_map_t *map = NULL;
@@
-189,8
+188,7
@@
static void ethstat_submit_value (const char *device,
return;
}
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));
vl.values_len = 1;
sstrncpy (vl.host, hostname_g, sizeof (vl.host));