Ignore:
Timestamp:
Aug 1, 2008, 4:43:22 PM (13 years ago)
Author:
charles
Message:

minor text cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r6354 r6425  
    233233getBytePiece( const tr_info * info, uint64_t byteOffset )
    234234{
    235     assert( info != NULL );
     235    assert( info );
    236236    assert( info->pieceSize != 0 );
    237237
     
    245245    uint64_t firstByte, lastByte;
    246246
    247     assert( info != NULL );
     247    assert( info );
    248248    assert( fileIndex < info->fileCount );
    249249
     
    310310    tr_info * inf = &tor->info;
    311311
    312     assert( inf != NULL );
     312    assert( inf );
    313313
    314314    for( ff=0; ff<inf->fileCount; ++ff ) {
     
    328328    int tier;
    329329
    330     assert( tor != NULL );
     330    assert( tor );
    331331    assert( ( 0 <= pos ) && ( pos < tor->info.trackerCount ) );
    332332
     
    633633tr_torrentCanManualUpdate( const tr_torrent * tor )
    634634{
    635     return ( tor != NULL )
     635    return ( tor )
    636636        && ( tor->isRunning )
    637637        && ( tr_trackerCanManualAnnounce( tor->tracker ) );
     
    805805    uint64_t haveBytes = 0;
    806806
    807     assert( tor != NULL );
     807    assert( tor );
    808808    assert( fileIndex < tor->info.fileCount );
    809809    assert( file->offset + file->length <= tor->info.totalSize );
     
    880880    tr_peer_stat * ret = NULL;
    881881
    882     if( tor != NULL )
     882    if( tor )
    883883        ret = tr_peerMgrPeerStats( tor->handle->peerMgr,
    884884                                   tor->info.hash, peerCount );
     
    930930    tr_torrentLock( tor );
    931931
    932     assert( tor != NULL );
     932    assert( tor );
    933933    assert( pieceIndex < tor->info.pieceCount );
    934934
     
    952952    tr_info * inf = &tor->info;
    953953
    954     assert( tor != NULL );
     954    assert( tor );
    955955    assert( !tor->isRunning );
    956956
     
    11611161fireStatusChange( tr_torrent * tor, cp_status_t status )
    11621162{
    1163     assert( tor != NULL );
     1163    assert( tor );
    11641164    assert( status==TR_CP_INCOMPLETE || status==TR_CP_DONE || status==TR_CP_COMPLETE );
    11651165
    1166     if( tor->status_func != NULL )
    1167         (tor->status_func)( tor, status, tor->status_func_user_data );
     1166    if( tor->status_func )
     1167        tor->status_func( tor, status, tor->status_func_user_data );
    11681168}
    11691169
     
    11731173                             void                   * user_data )
    11741174{
    1175     assert( tor != NULL );
     1175    assert( tor );
    11761176    tor->status_func = func;
    11771177    tor->status_func_user_data = user_data;
     
    12381238    tr_file * file;
    12391239
    1240     assert( tor != NULL );
     1240    assert( tor );
    12411241    assert( fileIndex < tor->info.fileCount );
    12421242    assert( priority==TR_PRI_LOW || priority==TR_PRI_NORMAL || priority==TR_PRI_HIGH );
     
    12701270
    12711271    tr_torrentLock( tor );
    1272     assert( tor != NULL );
     1272    assert( tor );
    12731273    assert( file < tor->info.fileCount );
    12741274    ret = tor->info.files[file].priority;
Note: See TracChangeset for help on using the changeset viewer.