projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-5.6' into collectd-5.7
[collectd.git]
/
src
/
contextswitch.c
diff --git
a/src/contextswitch.c
b/src/contextswitch.c
index
d91c073
..
1d73f04
100644
(file)
--- a/
src/contextswitch.c
+++ b/
src/contextswitch.c
@@
-48,14
+48,10
@@
#endif
static void cs_submit(derive_t context_switches) {
#endif
static void cs_submit(derive_t context_switches) {
- value_t values[1];
value_list_t vl = VALUE_LIST_INIT;
value_list_t vl = VALUE_LIST_INIT;
- values[0].derive = (derive_t)context_switches;
-
- vl.values = values;
+ vl.values = &(value_t){.derive = context_switches};
vl.values_len = 1;
vl.values_len = 1;
- sstrncpy(vl.host, hostname_g, sizeof(vl.host));
sstrncpy(vl.plugin, "contextswitch", sizeof(vl.plugin));
sstrncpy(vl.type, "contextswitch", sizeof(vl.type));
sstrncpy(vl.plugin, "contextswitch", sizeof(vl.plugin));
sstrncpy(vl.type, "contextswitch", sizeof(vl.type));