From: Florian Forster Date: Mon, 21 Jun 2010 13:28:51 +0000 (+0200) Subject: src/graph_list.c: Use the "graph_inst_foreach" function. X-Git-Tag: v4.0.0~206 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=52b15cc05fd4d7cc97f20b5bc52982e5ef49647b;p=collection4.git src/graph_list.c: Use the "graph_inst_foreach" function. --- diff --git a/src/graph_list.c b/src/graph_list.c index f3e9738..ca088a9 100644 --- a/src/graph_list.c +++ b/src/graph_list.c @@ -236,8 +236,7 @@ int gl_graph_instance_get_all (graph_config_t *cfg, /* {{{ */ if ((cfg == NULL) || (callback == NULL)) return (EINVAL); - return (inst_foreach (graph_get_instances (cfg), - gl_inst_callback_handler, &data)); + return (graph_inst_foreach (cfg, gl_inst_callback_handler, &data)); } /* }}} int gl_graph_instance_get_all */ int gl_instance_get_all (graph_inst_callback_t callback, /* {{{ */