X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmemcachec.c;h=13e388e88c494648235ad3adfdcac5f6a3ff4cd6;hb=733f11a209aa9678db4a6d8dc1086fd1854115fb;hp=965aa6539bbfc52e404753225d1e66c3aa1894ed;hpb=afecba06803e867b17a46f093495c9b6c7a028fa;p=collectd.git diff --git a/src/memcachec.c b/src/memcachec.c index 965aa653..13e388e8 100644 --- a/src/memcachec.c +++ b/src/memcachec.c @@ -68,7 +68,7 @@ struct web_page_s /* {{{ */ /* * Global variables; */ -static web_page_t *pages_g = NULL; +static web_page_t *pages_g; /* * Private functions @@ -304,8 +304,8 @@ static int cmc_config_add_page(oconfig_item_t *ci) /* {{{ */ status = cmc_config_add_string("Server", &page->server, child); else if (strcasecmp("Key", child->key) == 0) status = cmc_config_add_string("Key", &page->key, child); - else if (strcasecmp("PluginName", child->key) == 0) - status = cmc_config_add_string("PluginName", &page->plugin_name, child); + else if (strcasecmp("Plugin", child->key) == 0) + status = cmc_config_add_string("Plugin", &page->plugin_name, child); else if (strcasecmp("Match", child->key) == 0) /* Be liberal with failing matches => don't set `status'. */ cmc_config_add_match(page, child); @@ -412,7 +412,7 @@ static void cmc_submit(const web_page_t *wp, const web_match_t *wm, /* {{{ */ vl.values = &value; vl.values_len = 1; sstrncpy(vl.plugin, (wp->plugin_name != NULL) ? wp->plugin_name : "memcachec", - sizeof (vl.plugin)); + sizeof(vl.plugin)); sstrncpy(vl.plugin_instance, wp->instance, sizeof(vl.plugin_instance)); sstrncpy(vl.type, wm->type, sizeof(vl.type)); sstrncpy(vl.type_instance, wm->instance, sizeof(vl.type_instance));