X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/16069fa4869d2ece31cf3dcc116b9d369e1e3a5e..b816493f2200a91000a2ef2920e2930dce1dc6ab:/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 5e2926e68e..14543f342f 100644 --- a/examples/c/app-bittorrent/bittorrent-peer.c +++ b/examples/c/app-bittorrent/bittorrent-peer.c @@ -138,7 +138,7 @@ int get_peers_from_tracker(const_peer_t peer) 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) { - const tracker_answer_t 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;