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/bencode.c

    r6389 r6425  
    3434tr_bencIsType( const tr_benc * val, int type )
    3535{
    36     return ( ( val != NULL ) && ( val->type == type ) );
     36    return ( ( val ) && ( val->type == type ) );
    3737}
    3838
     
    177177    tr_benc * parent;
    178178
    179     assert( top != NULL );
    180     assert( parentStack != NULL );
     179    assert( top );
     180    assert( parentStack );
    181181
    182182    if( tr_ptrArrayEmpty( parentStack ) )
     
    184184
    185185    parent = tr_ptrArrayBack( parentStack );
    186     assert( parent != NULL );
     186    assert( parent );
    187187
    188188    /* dictionary keys must be strings */
     
    301301    err = !isSomething( top ) || !tr_ptrArrayEmpty( parentStack );
    302302
    303     if( !err && ( setme_end != NULL ) )
     303    if( !err && setme_end )
    304304        *setme_end = buf;
    305305
     
    904904    bencWalk( top, &walkFuncs, out );
    905905   
    906     if( len != NULL )
     906    if( len )
    907907        *len = EVBUFFER_LENGTH( out );
    908908    ret = tr_strndup( (char*) EVBUFFER_DATA( out ), EVBUFFER_LENGTH( out ) );
     
    12061206    if( EVBUFFER_LENGTH( data.out ) )
    12071207        evbuffer_add_printf( data.out, "\n" );
    1208     if( len != NULL )
     1208    if( len )
    12091209        *len = EVBUFFER_LENGTH( data.out );
    12101210    ret = tr_strndup( (char*) EVBUFFER_DATA( data.out ), EVBUFFER_LENGTH( data.out ) );
Note: See TracChangeset for help on using the changeset viewer.