X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b08cf565e62c980d3fa23c031b341ca4f1427bd9..656d24a575ca26a64c94174ff3573272979e081d:/src/surf/sg_platf.cpp diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index effdb4b3fa..da1123517a 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -575,7 +575,7 @@ void sg_platf_new_process(sg_platf_process_cbarg_t process) smx_process_arg_t arg = NULL; smx_process_t process_created = NULL; - arg = xbt_new0(s_smx_process_arg_t, 1); + arg = new s_smx_process_arg_t(); arg->code = parse_code; arg->data = NULL; arg->hostname = sg_host_get_name(host); @@ -593,7 +593,7 @@ void sg_platf_new_process(sg_platf_process_cbarg_t process) xbt_dynar_push_as(sg_host_simix(host)->boot_processes,smx_process_arg_t,arg); if (start_time > SIMIX_get_clock()) { - arg = xbt_new0(s_smx_process_arg_t, 1); + arg = new s_smx_process_arg_t(); arg->name = (char*)(process->argv)[0]; arg->code = parse_code; arg->data = NULL;