- XBT_INFO("Number of host '%d'",number_of_hosts);
- for(i = 0 ; i<number_of_hosts; i++)
- {
- char* name_host = bprintf("%d",i);
- MSG_process_create( name_host, host, NULL, host_table[i] );
+ XBT_INFO("Number of host '%d'",MSG_get_host_number());
+ xbt_dynar_foreach (hosts, i, h){
+ char* name_host = bprintf("%u",i);
+ MSG_process_create(name_host, host, NULL, h);