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/peer-msgs.c

    r6412 r6425  
    337337{
    338338    FILE * fp = tr_getLog( );
    339     if( fp != NULL )
     339    if( fp )
    340340    {
    341341        va_list args;
     
    552552sendInterest( tr_peermsgs * msgs, int weAreInterested )
    553553{
    554     assert( msgs != NULL );
     554    assert( msgs );
    555555    assert( weAreInterested==0 || weAreInterested==1 );
    556556
     
    586586    const time_t fibrillationTime = time(NULL) - MIN_CHOKE_PERIOD_SEC;
    587587
    588     assert( msgs != NULL );
    589     assert( msgs->info != NULL );
     588    assert( msgs );
     589    assert( msgs->info );
    590590    assert( choke==0 || choke==1 );
    591591
     
    622622                 uint32_t      pieceIndex )
    623623{
    624     assert( msgs != NULL );
     624    assert( msgs );
    625625   
    626626    if( tr_peerIoSupportsFEXT( msgs->io ) )
     
    634634sendFastHave( tr_peermsgs * msgs, int all )
    635635{
    636     assert( msgs != NULL );
     636    assert( msgs );
    637637   
    638638    if( tr_peerIoSupportsFEXT( msgs->io ) )
     
    652652                uint32_t      length )
    653653{
    654     assert( msgs != NULL );
     654    assert( msgs );
    655655
    656656    if( tr_peerIoSupportsFEXT( msgs->io ) )
     
    685685                 uint32_t      pieceIndex)
    686686{
    687     assert( msgs != NULL );
     687    assert( msgs );
    688688   
    689689    if( tr_peerIoSupportsFEXT( msgs->io ) )
     
    851851    struct peer_request req;
    852852
    853     assert( msgs != NULL );
    854     assert( msgs->torrent != NULL );
     853    assert( msgs );
     854    assert( msgs->torrent );
    855855    assert( piece < msgs->torrent->info.pieceCount );
    856856
     
    14931493    const tr_block_index_t block = _tr_block( tor, req->index, req->offset );
    14941494
    1495     assert( msgs != NULL );
    1496     assert( req != NULL );
     1495    assert( msgs );
     1496    assert( req );
    14971497
    14981498    if( req->length != tr_torBlockCountBytes( msgs->torrent, block ) )
     
    19081908    tr_peermsgs * m;
    19091909
    1910     assert( info != NULL );
    1911     assert( info->io != NULL );
     1910    assert( info );
     1911    assert( info->io );
    19121912
    19131913    m = tr_new0( tr_peermsgs, 1 );
     
    19531953tr_peerMsgsFree( tr_peermsgs* msgs )
    19541954{
    1955     if( msgs != NULL )
     1955    if( msgs )
    19561956    {
    19571957        tr_timerFree( &msgs->pulseTimer );
Note: See TracChangeset for help on using the changeset viewer.