X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e6c84456d9cbd536404b8d75b1117aa7c4ecbfde..eeec4714ded8d0a6be32567502577faaca925a18:/examples/msg/app-bittorrent/connection.h?ds=sidebyside diff --git a/examples/msg/app-bittorrent/connection.h b/examples/msg/app-bittorrent/connection.h index 057e3d8cbe..0bfcde0d95 100644 --- a/examples/msg/app-bittorrent/connection.h +++ b/examples/msg/app-bittorrent/connection.h @@ -16,10 +16,10 @@ typedef struct s_connection { double peer_speed; double last_unchoke; int current_piece; - int am_interested:1; //Indicates if we are interested in something the peer has - int interested:1; //Indicates if the peer is interested in one of our pieces - int choked_upload:1; //Indicates if the peer is choked for the current peer - int choked_download:1; //Indicates if the peer has choked the current peer + unsigned int am_interested:1; //Indicates if we are interested in something the peer has + unsigned int interested:1; //Indicates if the peer is interested in one of our pieces + unsigned int choked_upload:1; //Indicates if the peer is choked for the current peer + unsigned int choked_download:1; //Indicates if the peer has choked the current peer } s_connection_t, *connection_t; /** @brief Build a new connection object from the peer id.