projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'github/pr/1931'
[collectd.git]
/
src
/
memcachec.c
diff --git
a/src/memcachec.c
b/src/memcachec.c
index
1b6ab67
..
97e75c0
100644
(file)
--- a/
src/memcachec.c
+++ b/
src/memcachec.c
@@
-25,7
+25,6
@@
#include "common.h"
#include "plugin.h"
#include "common.h"
#include "plugin.h"
-#include "configfile.h"
#include "utils_match.h"
#include <libmemcached/memcached.h>
#include "utils_match.h"
#include <libmemcached/memcached.h>
@@
-442,14
+441,11
@@
static int cmc_init (void) /* {{{ */
} /* }}} int cmc_init */
static void cmc_submit (const web_page_t *wp, const web_match_t *wm, /* {{{ */
} /* }}} int cmc_init */
static void cmc_submit (const web_page_t *wp, const web_match_t *wm, /* {{{ */
-
const cu_match_value_t *mv
)
+
value_t value
)
{
{
- value_t values[1];
value_list_t vl = VALUE_LIST_INIT;
value_list_t vl = VALUE_LIST_INIT;
- values[0] = mv->value;
-
- vl.values = values;
+ vl.values = &value;
vl.values_len = 1;
sstrncpy (vl.host, hostname_g, sizeof (vl.host));
sstrncpy (vl.plugin, "memcachec", sizeof (vl.plugin));
vl.values_len = 1;
sstrncpy (vl.host, hostname_g, sizeof (vl.host));
sstrncpy (vl.plugin, "memcachec", sizeof (vl.plugin));
@@
-497,7
+493,7
@@
static int cmc_read_page (web_page_t *wp) /* {{{ */
continue;
}
continue;
}
- cmc_submit (wp, wm, mv);
+ cmc_submit (wp, wm, mv
->value
);
match_value_reset (mv);
} /* for (wm = wp->matches; wm != NULL; wm = wm->next) */
match_value_reset (mv);
} /* for (wm = wp->matches; wm != NULL; wm = wm->next) */