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
1 changed files with 1 additions and 1 deletions

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;