X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/65dc5e18ada92df9d138177c059be127a10810f5..1059053df344f90ee74d4fc9af05efce32022813:/src/instr/instr_routing.c diff --git a/src/instr/instr_routing.c b/src/instr/instr_routing.c index f63b722bb7..051b266cc9 100644 --- a/src/instr/instr_routing.c +++ b/src/instr/instr_routing.c @@ -85,7 +85,7 @@ static void linkContainers (container_t father, container_t src, container_t dst static void recursiveGraphExtraction (AS_t rc, container_t container, xbt_dict_t filter) { - if (xbt_dict_length (rc->routing_sons)){ + if (!xbt_dict_is_empty(rc->routing_sons)){ xbt_dict_cursor_t cursor = NULL; AS_t rc_son; char *child_name; @@ -394,7 +394,7 @@ static xbt_edge_t new_xbt_graph_edge (xbt_graph_t graph, xbt_node_t s, xbt_node_ static void recursiveXBTGraphExtraction (xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges, AS_t rc, container_t container) { - if (xbt_dict_length (rc->routing_sons)){ + if (!xbt_dict_is_empty(rc->routing_sons)){ xbt_dict_cursor_t cursor = NULL; AS_t rc_son; char *child_name;