X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/65b0ef3e4abf59f79ff89fa7644aff2451922729..e2003d622b6b961020a60265f2b03b427afaeb4b:/examples/msg/bittorrent/tracker.c diff --git a/examples/msg/bittorrent/tracker.c b/examples/msg/bittorrent/tracker.c index 169b5d688b..4c32db8ada 100644 --- a/examples/msg/bittorrent/tracker.c +++ b/examples/msg/bittorrent/tracker.c @@ -1,10 +1,11 @@ -/* Copyright (c) 2012. The SimGrid Team. +/* Copyright (c) 2012-2014. 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 "tracker.h" -#include +#include #include static void task_free(void *data); @@ -19,8 +20,7 @@ int tracker(int argc, char *argv[]) { int i; - RngStream stream = MSG_host_get_data(MSG_host_self()); - + RngStream stream = (RngStream) MSG_host_get_property_value(MSG_host_self(), "stream"); //Checking arguments xbt_assert(argc == 2, "Wrong number of arguments for the tracker."); //Retrieving end time