X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/60dfbf03645430333993376b5bc0f567ec417b38..c714798d5c146946f9ccce06da87bc1707b2de2d:/examples/msg/io/file.c diff --git a/examples/msg/io/file.c b/examples/msg/io/file.c index ed5ed3afc4..3cd1c8310a 100644 --- a/examples/msg/io/file.c +++ b/examples/msg/io/file.c @@ -39,18 +39,17 @@ int main(int argc, char **argv) int i,res; MSG_global_init(&argc, argv); MSG_create_environment(argv[1]); - m_host_t *host_table = MSG_get_host_table(); - int number_of_hosts = MSG_get_host_number(); + xbt_dynar_t hosts = MSG_hosts_as_dynar(); MSG_function_register("host", host); - XBT_INFO("Number of host '%d'",number_of_hosts); - for(i = 0 ; i