X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a8c316ac06c17368f52aff8c009e63421103cc24..fadac1a01fdb1a6e786d0d170f16ffab1419f2fd:/src/surf/callbacks.cpp diff --git a/src/surf/callbacks.cpp b/src/surf/callbacks.cpp index 07b63df115..34774a077a 100644 --- a/src/surf/callbacks.cpp +++ b/src/surf/callbacks.cpp @@ -13,10 +13,7 @@ void surf_on_host_created(void (*callback)(sg_host_t)) { simgrid::surf::Host::onCreation.connect([callback](simgrid::surf::Host* host) { - const char* id = host->getName(); - sg_host_t h = sg_host_by_name(id); - xbt_assert(h != NULL, "Host not found for name %s", id); - callback(h); + callback(host->p_host); }); }