From 52b15cc05fd4d7cc97f20b5bc52982e5ef49647b Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 21 Jun 2010 15:28:51 +0200 Subject: [PATCH] src/graph_list.c: Use the "graph_inst_foreach" function. --- src/graph_list.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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, /* {{{ */ -- 2.30.2