X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b46a15116e3ab14c03a7aad88cce834b40b90a2b..1aab041889e9a68f49b95561ddb756cb1710157b:/src/surf/sg_platf.cpp diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index af9b3ebfb1..9095e590dd 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -122,7 +122,7 @@ static void sg_platf_new_link(const simgrid::kernel::routing::LinkCreationArgs* for (auto const& elm : *args->properties) props.insert({elm.first, elm.second}); - simgrid::s4u::Link* link = + const simgrid::s4u::Link* link = routing_get_current()->create_link(link_name, args->bandwidths, args->latency, args->policy, &props); simgrid::kernel::resource::LinkImpl* l = link->get_impl(); @@ -272,7 +272,7 @@ void sg_platf_new_cluster(simgrid::kernel::routing::ClusterCreationArgs* cluster XBT_DEBUG("", cluster->router_id.c_str()); if (cluster->router_id.empty()) cluster->router_id = std::string(cluster->prefix) + cluster->id + "_router" + cluster->suffix; - current_as->router_ = sg_platf_new_router(cluster->router_id, NULL); + current_as->router_ = sg_platf_new_router(cluster->router_id, nullptr); //Make the backbone if ((cluster->bb_bw > 0) || (cluster->bb_lat > 0)) {