X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b87fc0829538ec066fd077e6c30ee6270b8abd78..5997f75835d50b618ea8f7030ff2f554b32350d9:/teshsuite/msg/app-bittorrent/bittorrent.c diff --git a/teshsuite/msg/app-bittorrent/bittorrent.c b/teshsuite/msg/app-bittorrent/bittorrent.c index 93b8e0e183..d278ae055b 100644 --- a/teshsuite/msg/app-bittorrent/bittorrent.c +++ b/teshsuite/msg/app-bittorrent/bittorrent.c @@ -1,14 +1,14 @@ -/* Copyright (c) 2012-2017. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2012-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include "bittorrent.h" -#include "peer.h" +#include "bittorrent-peer.h" #include "tracker.h" #include -#include + +#include /* snprintf */ /** Bittorrent example launcher */ int main(int argc, char* argv[]) @@ -27,8 +27,6 @@ int main(int argc, char* argv[]) xbt_dynar_foreach (host_list, i, host) { char descr[512]; snprintf(descr, sizeof descr, "RngSream<%s>", MSG_host_get_name(host)); - RngStream stream = RngStream_CreateStream(descr); - MSG_host_set_data(host, stream); } MSG_function_register("tracker", tracker); @@ -38,11 +36,6 @@ int main(int argc, char* argv[]) MSG_main(); - xbt_dynar_foreach (host_list, i, host) { - RngStream stream = (RngStream)MSG_host_get_data(host); - RngStream_DeleteStream(&stream); - MSG_host_set_data(host, NULL); - } xbt_dynar_free(&host_list); return 0;