mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
small tweak to play nice with old C compilers. Thanks to fizz for reporting & submitting a patch
This commit is contained in:
parent
698b8b71b3
commit
39d8c74fcd
1 changed files with 1 additions and 1 deletions
|
@ -1199,9 +1199,9 @@ readBtMessage( tr_peermsgs * msgs, struct evbuffer * inbuf, size_t inlen )
|
|||
break;
|
||||
|
||||
case BT_SUGGEST: {
|
||||
const tr_bitfield * bt = tr_cpPieceBitfield( msgs->torrent->completion );
|
||||
dbgmsg( msgs, "Got a BT_SUGGEST" );
|
||||
tr_peerIoReadUint32( msgs->io, inbuf, &ui32 );
|
||||
const tr_bitfield * bt = tr_cpPieceBitfield( msgs->torrent->completion );
|
||||
if( tr_bitfieldHas( bt, ui32 ) )
|
||||
tr_bitfieldAdd( msgs->clientSuggestedPieces, ui32 );
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue