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
Platform generation: add a bittorent example using a generated platform
[simgrid.git]
/
examples
/
msg
/
bittorrent
/
bittorrent.c
diff --git
a/examples/msg/bittorrent/bittorrent.c
b/examples/msg/bittorrent/bittorrent.c
index
ba52ea4
..
3679330
100644
(file)
--- a/
examples/msg/bittorrent/bittorrent.c
+++ b/
examples/msg/bittorrent/bittorrent.c
@@
-10,12
+10,13
@@
/**
* Bittorrent example launcher
*/
/**
* Bittorrent example launcher
*/
-int main(int argc, char *argv[]) {
+int main(int argc, char *argv[])
+{
MSG_init(&argc, argv);
/* Check the arguments */
if (argc < 3) {
MSG_init(&argc, argv);
/* Check the arguments */
if (argc < 3) {
- printf("Usage: %s platform_file deployment_file \n",argv[0]);
+ printf("Usage: %s platform_file deployment_file \n",
argv[0]);
return -1;
}
return -1;
}
@@
-24,12
+25,12
@@
int main(int argc, char *argv[]) {
MSG_create_environment(platform_file);
MSG_create_environment(platform_file);
- 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(deployment_file);
-
msg_error_t res =
MSG_main();
+ MSG_main();
MSG_clean();
MSG_clean();