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
Use homogeneous dictionaries whenever possible.
[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
f120573
..
cc364ce
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++;
}