Ignore:
Timestamp:
Apr 15, 2008, 5:00:44 PM (14 years ago)
Author:
charles
Message:

more hacking on the bencoded resume files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/completion.c

    r5606 r5627  
    231231}
    232232
    233 const tr_bitfield * tr_cpBlockBitfield( const tr_completion * cp )
    234 {
    235     assert( cp != NULL );
     233const tr_bitfield *
     234tr_cpBlockBitfield( const tr_completion * cp )
     235{
     236    assert( cp );
     237    assert( cp->blockBitfield );
     238    assert( cp->blockBitfield->bits );
     239    assert( cp->blockBitfield->len );
    236240
    237241    return cp->blockBitfield;
     
    242246{
    243247    tr_block_index_t i;
     248
     249    assert( cp );
     250    assert( bitfield );
     251    assert( cp->blockBitfield );
     252    assert( cp->blockBitfield->len == bitfield->len );
    244253
    245254    if( !cp || !bitfield || ( bitfield->len != cp->blockBitfield->len ) )
Note: See TracChangeset for help on using the changeset viewer.