X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f9436b840852218b39dce22d6057b6f223168daa..e7d2bc04e18b722f337396b3927ec144e10d7a3c:/examples/s4u/dht-chord/s4u_dht-chord.cpp diff --git a/examples/s4u/dht-chord/s4u_dht-chord.cpp b/examples/s4u/dht-chord/s4u_dht-chord.cpp index db79af6405..1a9db78bf2 100644 --- a/examples/s4u/dht-chord/s4u_dht-chord.cpp +++ b/examples/s4u/dht-chord/s4u_dht-chord.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2016. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2017. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -29,7 +29,7 @@ static void chord_init() HostChord::EXTENSION_ID = simgrid::s4u::Host::extension_create(); std::vector list; - simgrid::s4u::Engine::instance()->hostList(&list); + simgrid::s4u::Engine::getInstance()->getHostList(&list); for (auto host : list) host->extension_set(new HostChord(host)); } @@ -76,5 +76,6 @@ int main(int argc, char* argv[]) chord_exit(); + delete e; return 0; }