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
Remove old cruft.
[simgrid.git]
/
teshsuite
/
msg
/
app-bittorrent
/
bittorrent.c
diff --git
a/teshsuite/msg/app-bittorrent/bittorrent.c
b/teshsuite/msg/app-bittorrent/bittorrent.c
index
d278ae0
..
aebee13
100644
(file)
--- a/
teshsuite/msg/app-bittorrent/bittorrent.c
+++ b/
teshsuite/msg/app-bittorrent/bittorrent.c
@@
-8,14
+8,9
@@
#include "tracker.h"
#include <simgrid/msg.h>
#include "tracker.h"
#include <simgrid/msg.h>
-#include <stdio.h> /* snprintf */
-
/** Bittorrent example launcher */
int main(int argc, char* argv[])
{
/** Bittorrent example launcher */
int main(int argc, char* argv[])
{
- msg_host_t host;
- unsigned i;
-
MSG_init(&argc, argv);
/* Check the arguments */
MSG_init(&argc, argv);
/* Check the arguments */
@@
-23,12
+18,6
@@
int main(int argc, char* argv[])
MSG_create_environment(argv[1]);
MSG_create_environment(argv[1]);
- xbt_dynar_t host_list = MSG_hosts_as_dynar();
- xbt_dynar_foreach (host_list, i, host) {
- char descr[512];
- snprintf(descr, sizeof descr, "RngSream<%s>", MSG_host_get_name(host));
- }
-
MSG_function_register("tracker", tracker);
MSG_function_register("peer", peer);
MSG_function_register("tracker", tracker);
MSG_function_register("peer", peer);
@@
-36,7
+25,5
@@
int main(int argc, char* argv[])
MSG_main();
MSG_main();
- xbt_dynar_free(&host_list);
-
return 0;
}
return 0;
}