projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop support for libtool version 1
[collectd.git]
/
src
/
tokyotyrant.c
diff --git
a/src/tokyotyrant.c
b/src/tokyotyrant.c
index
dd1fb3a
..
cb366d3
100644
(file)
--- a/
src/tokyotyrant.c
+++ b/
src/tokyotyrant.c
@@
-72,14
+72,11
@@
static void printerr(void) {
ERROR("tokyotyrant plugin: error: %d, %s", ecode, tcrdberrmsg(ecode));
}
ERROR("tokyotyrant plugin: error: %d, %s", ecode, tcrdberrmsg(ecode));
}
-static void tt_submit(gauge_t val, const char *type) {
- value_t values[1];
+static void tt_submit(gauge_t value, const char *type) {
value_list_t vl = VALUE_LIST_INIT;
value_list_t vl = VALUE_LIST_INIT;
- values[0].gauge = val;
-
- vl.values = values;
- vl.values_len = STATIC_ARRAY_SIZE(values);
+ vl.values = &(value_t){.gauge = value};
+ vl.values_len = 1;
sstrncpy(vl.host, config_host, sizeof(vl.host));
sstrncpy(vl.plugin, "tokyotyrant", sizeof(vl.plugin));
sstrncpy(vl.host, config_host, sizeof(vl.host));
sstrncpy(vl.plugin, "tokyotyrant", sizeof(vl.plugin));