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 code
[simgrid.git]
/
src
/
msg
/
msg_vm.c
diff --git
a/src/msg/msg_vm.c
b/src/msg/msg_vm.c
index
e010913
..
0f078bd
100644
(file)
--- a/
src/msg/msg_vm.c
+++ b/
src/msg/msg_vm.c
@@
-204,8
+204,8
@@
msg_vm_t MSG_vm_create_core(msg_host_t ind_pm, const char *name)
{
/* make sure the VM of the same name does not exit */
{
-
void *
ind_host_tmp = xbt_lib_get_elm_or_null(host_lib, name);
- if (ind_host_tmp) {
+
xbt_dictelm_t
ind_host_tmp = xbt_lib_get_elm_or_null(host_lib, name);
+ if (ind_host_tmp
&& xbt_lib_get_level(ind_host_tmp, SIMIX_HOST_LEVEL) != NULL
) {
XBT_ERROR("host %s already exits", name);
return NULL;
}