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
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git]
/
examples
/
msg
/
app-bittorrent
/
bittorrent.c
diff --git
a/examples/msg/app-bittorrent/bittorrent.c
b/examples/msg/app-bittorrent/bittorrent.c
index
c88b708
..
c38162a
100644
(file)
--- a/
examples/msg/app-bittorrent/bittorrent.c
+++ b/
examples/msg/app-bittorrent/bittorrent.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2012-201
6
. The SimGrid Team.
+/* Copyright (c) 2012-201
7
. 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
@@
-21,10
+21,7
@@
int main(int argc, char *argv[])
/* Check the arguments */
xbt_assert (argc > 2, "Usage: %s platform_file deployment_file", argv[0]);
/* Check the arguments */
xbt_assert (argc > 2, "Usage: %s platform_file deployment_file", argv[0]);
- const char *platform_file = argv[1];
- const char *deployment_file = argv[2];
-
- MSG_create_environment(platform_file);
+ MSG_create_environment(argv[1]);
xbt_dynar_t host_list = MSG_hosts_as_dynar();
xbt_dynar_foreach(host_list, i, host) {
xbt_dynar_t host_list = MSG_hosts_as_dynar();
xbt_dynar_foreach(host_list, i, host) {
@@
-37,7
+34,7
@@
int main(int argc, char *argv[])
MSG_function_register("tracker", tracker);
MSG_function_register("peer", peer);
MSG_function_register("tracker", tracker);
MSG_function_register("peer", peer);
- MSG_launch_application(
deployment_file
);
+ MSG_launch_application(
argv[2]
);
MSG_main();
MSG_main();