X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/739a8e3ebb789b7155f033bfdacba9478095e190..16925d4563b0fd3a17dc7c05f91c9439e6fb2462:/teshsuite/simdag/flatifier/flatifier.cpp?ds=sidebyside diff --git a/teshsuite/simdag/flatifier/flatifier.cpp b/teshsuite/simdag/flatifier/flatifier.cpp index da1a39aadf..338f43b87f 100644 --- a/teshsuite/simdag/flatifier/flatifier.cpp +++ b/teshsuite/simdag/flatifier/flatifier.cpp @@ -121,10 +121,10 @@ static void dump_routes() }); for (unsigned int it_src = 0; it_src < totalHosts; it_src++) { // Routes from host - simgrid::s4u::Host* host1 = hosts[it_src]; + const simgrid::s4u::Host* host1 = hosts[it_src]; simgrid::kernel::routing::NetPoint* src = host1->get_netpoint(); for (unsigned int it_dst = 0; it_dst < totalHosts; it_dst++) { // Routes to host - simgrid::s4u::Host* host2 = hosts[it_dst]; + const simgrid::s4u::Host* host2 = hosts[it_dst]; std::vector route; simgrid::kernel::routing::NetPoint* dst = host2->get_netpoint(); simgrid::kernel::routing::NetZoneImpl::get_global_route(src, dst, route, nullptr); @@ -161,7 +161,7 @@ static void dump_routes() } } for (unsigned int it_dst = 0; it_dst < totalHosts; it_dst++) { // Routes to host - simgrid::s4u::Host* host2 = hosts[it_dst]; + const simgrid::s4u::Host* host2 = hosts[it_dst]; std::printf(" \n ", value1->get_cname(), host2->get_cname()); std::vector route; simgrid::kernel::routing::NetPoint* netcardDst = host2->get_netpoint();