From 6968624c2974dde9c5d8cd35d2a043c80b4c3db4 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 15 Dec 2015 22:31:07 +0100 Subject: [PATCH 1/1] cosmetics: use the implemented features --- src/surf/surf_c_bindings.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.20.1