X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5e524e9804b45a5c8150af940486cca4c8f4d035..f2795eb46b32db7cd2de790dda6e92a7b1244db1:/examples/c/app-bittorrent/bittorrent-peer.c diff --git a/examples/c/app-bittorrent/bittorrent-peer.c b/examples/c/app-bittorrent/bittorrent-peer.c index a91d555618..82698bf9a7 100644 --- a/examples/c/app-bittorrent/bittorrent-peer.c +++ b/examples/c/app-bittorrent/bittorrent-peer.c @@ -135,11 +135,10 @@ int get_peers_from_tracker(const_peer_t peer) } void* message = NULL; - tracker_answer_t ta = NULL; sg_comm_t comm_received = sg_mailbox_get_async(peer->mailbox, &message); res = sg_comm_wait_for(comm_received, GET_PEERS_TIMEOUT); if (res == SG_OK) { - ta = (tracker_answer_t)message; + const_tracker_answer_t ta = (const_tracker_answer_t)message; // Add the peers the tracker gave us to our peer list. unsigned i; int peer_id;