1
0
Fork 0
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:
Charles Kerr 2007-12-03 19:52:55 +00:00
parent 698b8b71b3
commit 39d8c74fcd

View file

@ -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;