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 MSG_host_by_name() instead of MSG_get_host_by_name()
[simgrid.git]
/
teshsuite
/
msg
/
host_on_off
/
host_on_off.c
diff --git
a/teshsuite/msg/host_on_off/host_on_off.c
b/teshsuite/msg/host_on_off/host_on_off.c
index
62660f9
..
f3e0759
100644
(file)
--- a/
teshsuite/msg/host_on_off/host_on_off.c
+++ b/
teshsuite/msg/host_on_off/host_on_off.c
@@
-25,7
+25,7
@@
int master(int argc, char *argv[])
char mailbox[256];
msg_task_t task = NULL;
char mailbox[256];
msg_task_t task = NULL;
- msg_host_t jupiter = MSG_
get_
host_by_name("Jupiter");
+ msg_host_t jupiter = MSG_host_by_name("Jupiter");
sprintf(mailbox, "jupi");
task = MSG_task_create("task on", task_comp_size, task_comm_size, NULL);
sprintf(mailbox, "jupi");
task = MSG_task_create("task on", task_comp_size, task_comm_size, NULL);
@@
-55,7
+55,7
@@
int master(int argc, char *argv[])
char **argvF = xbt_new(char*, 2);
argvF[0] = xbt_strdup("slave");
char **argvF = xbt_new(char*, 2);
argvF[0] = xbt_strdup("slave");
- MSG_process_create_with_arguments("slave", slave, NULL, MSG_
get_
host_by_name("Jupiter"), 1, argvF);
+ MSG_process_create_with_arguments("slave", slave, NULL, MSG_host_by_name("Jupiter"), 1, argvF);
task = MSG_task_create("task on with proc", task_comp_size, task_comm_size, NULL);
XBT_INFO("Sending \"%s\"", task->name);
task = MSG_task_create("task on with proc", task_comp_size, task_comm_size, NULL);
XBT_INFO("Sending \"%s\"", task->name);