Changeset 12308


Ignore:
Timestamp:
Apr 5, 2011, 12:24:25 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) remove unnecessary memmove()s from rechokeDownloads()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r12303 r12308  
    29262926            }
    29272927
    2928             tr_removeElementFromArray( peers, i, sizeof(tr_peer*), n-- );
     2928            /* remove 'peer' from the array 'peers' */
     2929            if( i != n - 1 )
     2930                peers[i] = peers[n-1];
     2931            --n;
    29292932        }
    29302933
Note: See TracChangeset for help on using the changeset viewer.