Changeset 12015


Ignore:
Timestamp:
Feb 23, 2011, 6:18:09 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) minor cleanup: improve the function names torrentConstructor() and torrentDestructor().

These functions actually allocate/free the memory where these objects reside, so it's clearer to name them torrentNew() and torrentDelete().

File:
1 edited

Legend:

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

    r12014 r12015  
    484484
    485485static void
    486 torrentDestructor( void * vt )
     486torrentFree( void * vt )
    487487{
    488488    Torrent * t = vt;
     
    509509
    510510static Torrent*
    511 torrentConstructor( tr_peerMgr * manager,
    512                     tr_torrent * tor )
     511torrentNew( tr_peerMgr * manager, tr_torrent * tor )
    513512{
    514513    int       i;
     
    24312430    assert( tor->torrentPeers == NULL );
    24322431
    2433     tor->torrentPeers = torrentConstructor( manager, tor );
     2432    tor->torrentPeers = torrentNew( manager, tor );
    24342433}
    24352434
     
    24412440
    24422441    stopTorrent( tor->torrentPeers );
    2443     torrentDestructor( tor->torrentPeers );
     2442    torrentFree( tor->torrentPeers );
    24442443}
    24452444
Note: See TracChangeset for help on using the changeset viewer.