- if (strcasecmp ("Regex", child->key) == 0)
- status = cmc_config_add_string ("Regex", &match->regex, child);
- else if (strcasecmp ("ExcludeRegex", child->key) == 0)
- status = cmc_config_add_string ("ExcludeRegex", &match->exclude_regex, child);
- else if (strcasecmp ("DSType", child->key) == 0)
- status = cmc_config_add_match_dstype (&match->dstype, child);
- else if (strcasecmp ("Type", child->key) == 0)
- status = cmc_config_add_string ("Type", &match->type, child);
- else if (strcasecmp ("Instance", child->key) == 0)
- status = cmc_config_add_string ("Instance", &match->instance, child);
- else
- {
- WARNING ("memcachec plugin: Option `%s' not allowed here.", child->key);
+ if (strcasecmp("Regex", child->key) == 0)
+ status = cf_util_get_string(child, &match->regex);
+ else if (strcasecmp("ExcludeRegex", child->key) == 0)
+ status = cf_util_get_string(child, &match->exclude_regex);
+ else if (strcasecmp("DSType", child->key) == 0)
+ status = cmc_config_add_match_dstype(&match->dstype, child);
+ else if (strcasecmp("Type", child->key) == 0)
+ status = cf_util_get_string(child, &match->type);
+ else if (strcasecmp("Instance", child->key) == 0)
+ status = cf_util_get_string(child, &match->instance);
+ else {
+ WARNING("memcachec plugin: Option `%s' not allowed here.", child->key);