X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmemcachec.c;h=19228efef5c7dc4e90c33eba7e72ad84ee1e779c;hb=4138e6c7622acf45d8e441a2d5085190b832c439;hp=0260a3eeb1aa02e03f197468e48820ea9d6b3434;hpb=2079ee1517e34de372f58e7e2267ad5c71a8a41f;p=collectd.git diff --git a/src/memcachec.c b/src/memcachec.c index 0260a3ee..19228efe 100644 --- a/src/memcachec.c +++ b/src/memcachec.c @@ -402,15 +402,11 @@ static int cmc_init(void) /* {{{ */ } /* }}} 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 values[1]; + value_t value) { 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)); sstrncpy(vl.plugin_instance, wp->instance, sizeof(vl.plugin_instance)); sstrncpy(vl.type, wm->type, sizeof(vl.type)); @@ -452,7 +448,7 @@ static int cmc_read_page(web_page_t *wp) /* {{{ */ 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) */ @@ -483,5 +479,3 @@ void module_register(void) { plugin_register_read("memcachec", cmc_read); plugin_register_shutdown("memcachec", cmc_shutdown); } /* void module_register */ - -/* vim: set sw=2 sts=2 et fdm=marker : */