]> AND Public Git Repository - simgrid.git/blobdiff - examples/c/app-bittorrent/bittorrent-peer.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
the on_exit() of each actor is also executed when the simulation deadlocks
[simgrid.git] / examples / c / app-bittorrent / bittorrent-peer.c
index 5e2926e68e1b03af4c045a0c939614e129074935..82698bf9a718d93dd442e9161770e59fcfde5783 100644 (file)
@@ -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;