X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/eff13e323664f224576a26b017543955b3044b05..6968624c2974dde9c5d8cd35d2a043c80b4c3db4:/src/surf/surf_c_bindings.cpp diff --git a/src/surf/surf_c_bindings.cpp b/src/surf/surf_c_bindings.cpp index 9ee5be13f2..fb4004a49c 100644 --- a/src/surf/surf_c_bindings.cpp +++ b/src/surf/surf_c_bindings.cpp @@ -396,8 +396,7 @@ void surf_vm_destroy(sg_host_t resource){ sg_host_surfcpu_destroy(resource); sg_host_edge_destroy(resource,1); // TODO, use backlink from simgrid::surf::Host to simgrid::Host - simgrid::Host* host = (simgrid::Host*) xbt_dict_get_or_null(host_list, name); - host->set_facet(SURF_HOST_LEVEL, nullptr); + simgrid::Host::by_name_or_null(name)->set_facet(SURF_HOST_LEVEL, nullptr); /* TODO: comment out when VM storage is implemented. */ // host->set_facet(SURF_STORAGE_LEVEL, nullptr);