From: Martin Quinson Date: Mon, 4 Jan 2016 10:56:04 +0000 (+0100) Subject: tiny cosmetics X-Git-Tag: v3_13~1362 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/742fc2a4e6a690d2819cb636fd1a1323e1bf3ab9 tiny cosmetics --- diff --git a/src/surf/host_interface.cpp b/src/surf/host_interface.cpp index a639622920..4585220e24 100644 --- a/src/surf/host_interface.cpp +++ b/src/surf/host_interface.cpp @@ -37,9 +37,10 @@ simgrid::xbt::Extension Host::EXTENSION_ID; * Model * *********/ Host *HostModel::createHost(const char *name,NetCard *netElm, Cpu *cpu, xbt_dict_t props){ + xbt_dynar_t storageList = (xbt_dynar_t)xbt_lib_get_or_null(storage_lib, name, ROUTING_STORAGE_HOST_LEVEL); + Host *host = new simgrid::surf::Host(surf_host_model, name, props, - (xbt_dynar_t)xbt_lib_get_or_null(storage_lib, name, ROUTING_STORAGE_HOST_LEVEL), - netElm, cpu); + storageList, netElm, cpu); XBT_DEBUG("Create host %s with %ld mounted disks", name, xbt_dynar_length(host->p_storage)); return host; }