X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ecd5f7562caf1d443bf22788fa5f4fac408776ec..eaa222acd330e2c3e2c517c5eaab82c8fcb8a4c1:/examples/s4u/app-bittorrent/s4u-bittorrent.cpp diff --git a/examples/s4u/app-bittorrent/s4u-bittorrent.cpp b/examples/s4u/app-bittorrent/s4u-bittorrent.cpp index 38709b0be3..0ce2b97cf2 100644 --- a/examples/s4u/app-bittorrent/s4u-bittorrent.cpp +++ b/examples/s4u/app-bittorrent/s4u-bittorrent.cpp @@ -21,8 +21,7 @@ int main(int argc, char* argv[]) HostBittorrent::EXTENSION_ID = simgrid::s4u::Host::extension_create(); - std::vector list; - simgrid::s4u::Engine::getInstance()->getHostList(&list); + std::vector list = simgrid::s4u::Engine::getInstance()->getAllHosts(); for (auto const& host : list) host->extension_set(new HostBittorrent(host));