Changeset 11472


Ignore:
Timestamp:
Dec 5, 2010, 6:44:47 PM (11 years ago)
Author:
charles
Message:

(2.0x libtransmission) backport r11304 for #3628 "remove dead variable pieceBytesRead from libtransmission/verify.c"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/libtransmission/verify.c

    r10905 r11472  
    5555    time_t lastSleptAt = 0;
    5656    uint32_t piecePos = 0;
    57     uint32_t pieceBytesRead = 0;
    5857    tr_file_index_t fileIndex = 0;
    5958    tr_file_index_t prevFileIndex = !fileIndex;
     
    104103            if( numRead == bytesThisPass )
    105104                SHA1_Update( &sha, buffer, numRead );
    106             if( numRead > 0 ) {
    107                 pieceBytesRead += numRead;
    108105#if defined HAVE_POSIX_FADVISE && defined POSIX_FADV_DONTNEED
     106            if( numRead > 0 )
    109107                posix_fadvise( fd, filePos, bytesThisPass, POSIX_FADV_DONTNEED );
    110108#endif
    111             }
    112109        }
    113110
     
    151148            ++pieceIndex;
    152149            piecePos = 0;
    153             pieceBytesRead = 0;
    154150        }
    155151
Note: See TracChangeset for help on using the changeset viewer.