X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b8df87e176f27b25534f27d7e240defa32ca35bc..d3ff5bc1abcc24a092161f238c69447a72201746:/teshsuite/msg/app-bittorrent/connection.c diff --git a/teshsuite/msg/app-bittorrent/connection.c b/teshsuite/msg/app-bittorrent/connection.c index d632552be1..59f1b53edf 100644 --- a/teshsuite/msg/app-bittorrent/connection.c +++ b/teshsuite/msg/app-bittorrent/connection.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2019. The SimGrid Team. +/* Copyright (c) 2012-2020. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -39,7 +39,7 @@ void connection_free(void* data) xbt_free(co); } -int connection_has_piece(connection_t connection, unsigned int piece) +int connection_has_piece(const s_connection_t* connection, unsigned int piece) { return (connection->bitfield & 1U << piece); }