*** INTEREST
**/
-static int
+static tr_bool
isPieceInteresting( const tr_peermsgs * msgs,
tr_piece_index_t piece )
{
}
/* "interested" means we'll ask for piece data if they unchoke us */
-static int
+static tr_bool
isPeerInteresting( const tr_peermsgs * msgs )
{
tr_piece_index_t i;
fireNeedReq( msgs );
}
-static int
+static tr_bool
popNextRequest( tr_peermsgs * msgs,
struct peer_request * setme )
{
fireNeedReq( msgs );
}
-static TR_INLINE int
+static TR_INLINE tr_bool
requestQueueIsFull( const tr_peermsgs * msgs )
{
const int req_max = msgs->maxActiveRequests;
protocolSendReject( msgs, req );
}
-static int
+static tr_bool
messageLengthIsCorrect( const tr_peermsgs * msg, uint8_t id, uint32_t len )
{
switch( id )