X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0ca1291c2f63ca6235f4b4885c48413a900aade4..bea71eb0cdea9abd9b6476bdaaecd26179d58cd8:/src/gras/Virtu/rl_process.c diff --git a/src/gras/Virtu/rl_process.c b/src/gras/Virtu/rl_process.c index db5148e9cc..cc364ceced 100644 --- a/src/gras/Virtu/rl_process.c +++ b/src/gras/Virtu/rl_process.c @@ -39,8 +39,8 @@ void gras_process_init() gras_procdata_init(); /* initialize the host & process properties */ - _host_properties = xbt_dict_new(); - _process_properties = xbt_dict_new(); + _host_properties = xbt_dict_new_homogeneous(xbt_free_f); + _process_properties = xbt_dict_new_homogeneous(xbt_free_f); env_iter = environ; while (*env_iter) { char *equal, *buf = xbt_strdup(*env_iter); @@ -52,8 +52,7 @@ void gras_process_init() continue; } *equal = '\0'; - xbt_dict_set(_process_properties, buf, xbt_strdup(equal + 1), - xbt_free_f); + xbt_dict_set(_process_properties, buf, xbt_strdup(equal + 1), NULL); free(buf); env_iter++; } @@ -103,7 +102,7 @@ typedef struct { static void *spawner_wrapper(void *data) { spawner_wrapper_args *a = data; - (*(a->code))(a->argc,a->argv); + a->code(a->argc, a->argv); free(a); return NULL; }