X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/500d56f4d9b6e10ad5bfa2b96e0154f212a3a505..5b547799240cfe5d60c1c4161e3fc8849095e2ca:/examples/c/app-chainsend/peer.c diff --git a/examples/c/app-chainsend/peer.c b/examples/c/app-chainsend/peer.c index 3161dd433b..022e851b30 100644 --- a/examples/c/app-chainsend/peer.c +++ b/examples/c/app-chainsend/peer.c @@ -30,7 +30,7 @@ static void peer_forward_file(peer_t p) p->pending_recvs[nb_pending_recvs] = sg_mailbox_get_async(p->me, &received); nb_pending_recvs++; - int idx = sg_comm_wait_any(p->pending_recvs, nb_pending_recvs); + ssize_t idx = sg_comm_wait_any(p->pending_recvs, nb_pending_recvs); if (idx != -1) { XBT_DEBUG("Peer %s got a 'SEND_DATA' message", sg_mailbox_get_name(p->me)); /* move the last pending comm where the finished one was, and decrement */