X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/12802de52c0a297e8c3253b7d9fc875c7e9cb0d9..cc375ad134c19925e1e343bae932be21cf8a8caf:/examples/msg/masterslave/masterslave_failure_platfgen.c diff --git a/examples/msg/masterslave/masterslave_failure_platfgen.c b/examples/msg/masterslave/masterslave_failure_platfgen.c index 8194e32062..bba483a7d9 100644 --- a/examples/msg/masterslave/masterslave_failure_platfgen.c +++ b/examples/msg/masterslave/masterslave_failure_platfgen.c @@ -130,7 +130,6 @@ int master(int argc, char *argv[]) double task_comp_size = 0; double task_comm_size = 0; int i; - _XBT_GNUC_UNUSED int read; number_of_tasks = TASK_COUNT_PER_HOST*argc; task_comp_size = TASK_COMP_SIZE; @@ -329,7 +328,7 @@ int main(int argc, char *argv[]) msg_host_t host_master = NULL; msg_process_t process = NULL; xbt_dynar_t host_dynar = MSG_hosts_as_dynar(); - char** hostname_list = malloc(sizeof(char*) * xbt_dynar_length(host_dynar)); + char** hostname_list = xbt_malloc(sizeof(char*) * xbt_dynar_length(host_dynar)); xbt_dynar_foreach(host_dynar, i, host) { process = MSG_process_create("slave", slave, NULL, host);