Changeset 6632


Ignore:
Timestamp:
Aug 22, 2008, 4:34:16 PM (13 years ago)
Author:
muks
Message:

Don't use memmove() for simple assignment

File:
1 edited

Legend:

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

    r6631 r6632  
    721721                case TR_ADDREQ_FULL:
    722722                case TR_ADDREQ_CLIENT_CHOKED:
    723                     memmove( peers+j, peers + --peerCount, sizeof *peers );
     723                    peers[j] = peers[--peerCount];
    724724                    break;
    725725                case TR_ADDREQ_MISSING:
     
    744744            {
    745745                case TR_ADDREQ_FULL:
    746                     memmove( webseeds+j, webseeds + --webseedCount, sizeof *webseeds );
     746                    webseeds[j] = webseeds[--webseedCount];
    747747                    break;
    748748                case TR_ADDREQ_OK:
Note: See TracChangeset for help on using the changeset viewer.