X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0fe5e08a172fa3189f51d8cf2a4564e5b3bafce5..4e3a5dfcf8e95dedcf2c6db54f782eccfd5554d9:/examples/msg/app-bittorrent/peer.c diff --git a/examples/msg/app-bittorrent/peer.c b/examples/msg/app-bittorrent/peer.c index 172199aa39..d7875192ce 100644 --- a/examples/msg/app-bittorrent/peer.c +++ b/examples/msg/app-bittorrent/peer.c @@ -672,9 +672,8 @@ void update_interested_after_receive(peer_t peer) char *key; xbt_dict_cursor_t cursor; connection_t connection; - int interested; xbt_dict_foreach(peer->peers, cursor, key, connection) { - interested = 0; + int interested = 0; if (connection->am_interested != 0) { //Check if the peer still has a piece we want. for (int i = 0; i < FILE_PIECES; i++) {