From: Frederic Suter Date: Mon, 23 Mar 2020 10:03:38 +0000 (+0100) Subject: another const for sonar X-Git-Tag: v3.26~713 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b816493f2200a91000a2ef2920e2930dce1dc6ab another const for sonar --- 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;