From: Florian Forster Date: Fri, 18 Jan 2013 10:42:40 +0000 (+0100) Subject: dbi plugin: Replace cdbi_config_set_string() with cf_util_get_string(). X-Git-Tag: collectd-5.3.0~60 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f229efa7d0202c119589577ad76899d0e92d04c0;p=collectd.git dbi plugin: Replace cdbi_config_set_string() with cf_util_get_string(). --- diff --git a/src/dbi.c b/src/dbi.c index 7067a2d4..acf3b761 100644 --- a/src/dbi.c +++ b/src/dbi.c @@ -299,7 +299,7 @@ static int cdbi_config_add_database (oconfig_item_t *ci) /* {{{ */ status = udb_query_pick_from_list (child, queries, queries_num, &db->queries, &db->queries_num); else if (strcasecmp ("Hostname", child->key) == 0) - status = cdbi_config_set_string(&db->hostname, child); + status = cf_util_get_string (child, &db->hostname); else { WARNING ("dbi plugin: Option `%s' not allowed here.", child->key);