Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Friday smell chase
[simgrid.git] / src / kernel / routing / RoutedZone.cpp
index 61e80c49ce09e6c03d032150bb16e21e17614ae5..9f846b594a37add6b5859328b521215eafc3708d 100644 (file)
@@ -88,8 +88,10 @@ void RoutedZone::getGraph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges)
 
       XBT_DEBUG("get_route_and_latency %s -> %s", my_src->cname(), my_dst->cname());
 
-      xbt_node_t current, previous;
-      const char *previous_name, *current_name;
+      xbt_node_t current;
+      xbt_node_t previous;
+      const char *previous_name;
+      const char *current_name;
 
       if (route->gw_src) {
         previous      = new_xbt_graph_node(graph, route->gw_src->cname(), nodes);
@@ -100,7 +102,7 @@ void RoutedZone::getGraph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges)
       }
 
       for (auto link : *route->link_list) {
-        const char* link_name = link->getName();
+        const char* link_name = link->cname();
         current               = new_xbt_graph_node(graph, link_name, nodes);
         current_name          = link_name;
         new_xbt_graph_edge(graph, previous, current, edges);