Changeset 7573


Ignore:
Timestamp:
Jan 2, 2009, 4:46:38 AM (12 years ago)
Author:
charles
Message:

(trunk libT) very minor style cleanup in tr_bandwidthAllocate()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bandwidth.c

    r7567 r7573  
    317317    n = peerCount;
    318318    i = n ? tr_cryptoWeakRandInt( n ) : 0; /* pick a random starting point */
    319     for( ; n>1 ; )
     319    while( n > 1 )
    320320    {
    321321        const int increment = 1024;
    322         const int byteCount = tr_peerIoFlush( peers[i], dir, increment);
    323 
    324         if( byteCount == increment )
     322        const int bytesUsed = tr_peerIoFlush( peers[i], dir, increment);
     323
     324        if( bytesUsed == increment )
    325325            ++i;
    326326        else {
     
    332332        }
    333333
    334         assert( i <= n );
    335334        if( i == n )
    336335            i = 0;
Note: See TracChangeset for help on using the changeset viewer.