X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/914a96cd544e878a5c2513b800d2327f86ef9119..af4023f2adc7976a736077c23829d217e7b89637:/src/simgrid/host.cpp diff --git a/src/simgrid/host.cpp b/src/simgrid/host.cpp index 5b709b4f27..51da4ba691 100644 --- a/src/simgrid/host.cpp +++ b/src/simgrid/host.cpp @@ -217,7 +217,7 @@ void sg_host_set_property_value(sg_host_t host, const char* name, const char* va void sg_host_route(sg_host_t from, sg_host_t to, xbt_dynar_t links) { std::vector vlinks; - from->routeTo(to, &vlinks, nullptr); + from->routeTo(to, vlinks, nullptr); for (auto const& link : vlinks) xbt_dynar_push(links, &link); } @@ -231,7 +231,7 @@ double sg_host_route_latency(sg_host_t from, sg_host_t to) { std::vector vlinks; double res = 0; - from->routeTo(to, &vlinks, &res); + from->routeTo(to, vlinks, &res); return res; } /** @@ -245,7 +245,7 @@ double sg_host_route_bandwidth(sg_host_t from, sg_host_t to) double min_bandwidth = -1.0; std::vector vlinks; - from->routeTo(to, &vlinks, nullptr); + from->routeTo(to, vlinks, nullptr); for (auto const& link : vlinks) { double bandwidth = link->bandwidth(); if (bandwidth < min_bandwidth || min_bandwidth < 0.0)