Changeset 12143


Ignore:
Timestamp:
Mar 13, 2011, 5:45:34 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) tweaks by werehamster

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/makemeta.c

    r11862 r12143  
    163163
    164164    ret->pieceSize = bestPieceSize( ret->totalSize );
    165     ret->pieceCount = ret->pieceSize
    166                       ? (int)( ret->totalSize / ret->pieceSize )
    167                       : 0;
     165    ret->pieceCount = (int)( ret->totalSize / ret->pieceSize );
    168166    if( ret->totalSize % ret->pieceSize )
    169167        ++ret->pieceCount;
  • trunk/libtransmission/rpcimpl.c

    r12096 r12143  
    11341134        errno = 0;
    11351135
    1136         if( !errno ) {
    1137             fd = tr_open_file_for_writing( filename );
    1138             if( fd < 0 )
    1139                 tr_snprintf( result, sizeof( result ), _( "Couldn't save file \"%1$s\": %2$s" ), filename, tr_strerror( errno ) );
    1140         }
     1136        fd = tr_open_file_for_writing( filename );
     1137        if( fd < 0 )
     1138            tr_snprintf( result, sizeof( result ), _( "Couldn't save file \"%1$s\": %2$s" ), filename, tr_strerror( errno ) );
    11411139
    11421140        if( !errno ) {
  • trunk/libtransmission/utils.c

    r12141 r12143  
    13621362        success = FALSE;
    13631363    } else if( *end != '-' ) {
    1364         b = a;
    13651364        success = TRUE;
    13661365    } else {
Note: See TracChangeset for help on using the changeset viewer.