From b816493f2200a91000a2ef2920e2930dce1dc6ab Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Mon, 23 Mar 2020 11:03:38 +0100 Subject: [PATCH] another const for sonar --- examples/c/app-bittorrent/bittorrent-peer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1