Ticket #521: transmission-c89.diff

File transmission-c89.diff, 679 bytes (added by fizz, 15 years ago)

C89 fix

  • libtransmission/peer-msgs.

    old new readBtMessage( tr_peermsgs * msgs, struc 
    11971197            break;
    11981198           
    11991199        case BT_SUGGEST: {
     1200            const tr_bitfield * bt;
    12001201            dbgmsg( msgs, "Got a BT_SUGGEST" );
    12011202            tr_peerIoReadUint32( msgs->io, inbuf, &ui32 );
    1202             const tr_bitfield * bt = tr_cpPieceBitfield( msgs->torrent->completion );
     1203            bt = tr_cpPieceBitfield( msgs->torrent->completion );
    12031204            if( tr_bitfieldHas( bt, ui32 ) )
    12041205                tr_bitfieldAdd( msgs->clientSuggestedPieces, ui32 );
    12051206            break;