X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b4b2e66a3e8b0f5e84729c3d57a3cfd17a894bd5..2ddaad87cbb9584159fd9ea054a4dd0dbf1224b2:/src/msg/msg_environment.c diff --git a/src/msg/msg_environment.c b/src/msg/msg_environment.c index eb889cbe3d..44ef32caf1 100644 --- a/src/msg/msg_environment.c +++ b/src/msg/msg_environment.c @@ -7,7 +7,7 @@ #include "msg_private.h" #include "xbt/sysdep.h" #include "xbt/log.h" -#include "xbt/dict.h" + #ifdef HAVE_LUA #include #include @@ -45,7 +45,7 @@ void MSG_post_create_environment(void) { /* Initialize MSG hosts */ xbt_lib_foreach(host_lib, cursor, name, data) { if(data[SIMIX_HOST_LEVEL]) - __MSG_host_create((smx_host_t)data[SIMIX_HOST_LEVEL]); + __MSG_host_create(xbt_dict_cursor_get_elm(cursor)); } }