From: mquinson Date: Thu, 12 Jul 2007 13:56:28 +0000 (+0000) Subject: Stop using internal interface of dynars related to cursors X-Git-Tag: v3.3~1611 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/db94bc623e61cfc180156f0b17a8586fa1a58164 Stop using internal interface of dynars related to cursors git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3749 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/graph.c b/src/xbt/graph.c index 61aee25789..a0f5d9e6ad 100644 --- a/src/xbt/graph.c +++ b/src/xbt/graph.c @@ -173,12 +173,12 @@ void xbt_graph_free_node(xbt_graph_t g, xbt_node_t n, nbr = xbt_dynar_length(g->edges); cursor = 0; for (i = 0; i < nbr; i++) { - xbt_dynar_cursor_get(g->edges, &cursor, &edge); + xbt_dynar_get_cpy(g->edges, cursor, &edge); if ((edge->dst == n) || (edge->src == n)) { xbt_graph_free_edge(g, edge, edge_free_function); } else - xbt_dynar_cursor_step(g->edges, &cursor); + cursor ++; } if ((node_free_function) && (n->data))