A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kill dead commented code.
[simgrid.git]
/
src
/
gras
/
Virtu
/
rl_process.c
diff --git
a/src/gras/Virtu/rl_process.c
b/src/gras/Virtu/rl_process.c
index db5148e9ccc7ba05215647d0a4f064094a292cd5..cc364cecedec603bf01e01c1f5f302fc44fd7c85 100644
(file)
--- 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 */
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);
env_iter = environ;
while (*env_iter) {
char *equal, *buf = xbt_strdup(*env_iter);
@@
-52,8
+52,7
@@
void gras_process_init()
continue;
}
*equal = '\0';
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++;
}
free(buf);
env_iter++;
}
@@
-103,7
+102,7
@@
typedef struct {
static void *spawner_wrapper(void *data) {
spawner_wrapper_args *a = data;
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;
}
free(a);
return NULL;
}