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
This way of passing arguments has changed since a long time.
[simgrid.git]
/
teshsuite
/
simdag
/
platforms
/
basic_tracing.c
diff --git
a/teshsuite/simdag/platforms/basic_tracing.c
b/teshsuite/simdag/platforms/basic_tracing.c
index
7804aec
..
73153ef
100644
(file)
--- a/
teshsuite/simdag/platforms/basic_tracing.c
+++ b/
teshsuite/simdag/platforms/basic_tracing.c
@@
-24,18
+24,18
@@
int main(int argc, char **argv)
{
int res;
xbt_dynar_t all_hosts;
- m_host_t first_host;
+ m
sg
_host_t first_host;
MSG_init(&argc, argv);
MSG_create_environment(argv[1]);
MSG_function_register("host", host);
all_hosts = MSG_hosts_as_dynar();
- first_host = xbt_dynar_pop_as(all_hosts,m_host_t);
+ first_host = xbt_dynar_pop_as(all_hosts,m
sg
_host_t);
MSG_process_create( "host", host, NULL, first_host);
xbt_dynar_free(&all_hosts);
res = MSG_main();
XBT_INFO("Simulation time %g", MSG_get_clock());
- MSG_clean();
+
if (res == MSG_OK)
return 0;
else