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
cosmetics in teshsuite/msg/host_on_off -- don't ask why
[simgrid.git]
/
teshsuite
/
msg
/
host_on_off
/
host_on_off_wait.c
diff --git
a/teshsuite/msg/host_on_off/host_on_off_wait.c
b/teshsuite/msg/host_on_off/host_on_off_wait.c
index
8237bf2
..
5c35cb9
100644
(file)
--- a/
teshsuite/msg/host_on_off/host_on_off_wait.c
+++ b/
teshsuite/msg/host_on_off/host_on_off_wait.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2010-201
4
. The SimGrid Team.
+/* Copyright (c) 2010-201
5
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-23,12
+23,9
@@
int master(int argc, char *argv[])
{
xbt_ex_t e;
TRY {
{
xbt_ex_t e;
TRY {
- msg_host_t jupiter = MSG_
get_
host_by_name("Jupiter");
+ msg_host_t jupiter = MSG_host_by_name("Jupiter");
XBT_INFO("Master waiting");
XBT_INFO("Master waiting");
- if(MSG_process_sleep(1)) {
- XBT_ERROR("Unexpected error while sleeping");
- return 1;
- }
+ MSG_process_sleep(1);
XBT_INFO("Turning off the slave host");
MSG_host_off(jupiter);
XBT_INFO("Turning off the slave host");
MSG_host_off(jupiter);