Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
checking if a unsigned int is >0 is a bad idea
[simgrid.git] / examples / msg / app-bittorrent / peer.h
index 4c28fc3..d08f1f2 100644 (file)
@@ -76,7 +76,7 @@ int partially_downloaded_piece(peer_t peer, connection_t remote_peer);
 
 void request_new_piece_to_peer(peer_t peer, connection_t remote_peer);
 void send_request_to_peer(peer_t peer, connection_t remote_peer, int piece);
-void remove_current_piece(peer_t peer, connection_t remote_peer, int current_piece);
+void remove_current_piece(peer_t peer, connection_t remote_peer, unsigned int current_piece);
 
 void update_active_peers_set(peer_t peer, connection_t remote_peer);
 int select_piece_to_download(peer_t peer, connection_t remote_peer);