Ignore:
Timestamp:
Mar 31, 2011, 2:53:22 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) use aggregation for the tr_bandwidth objects owned by tr_session and tr_torrent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bandwidth.c

    r12226 r12280  
    9696***/
    9797
    98 tr_bandwidth*
     98void
    9999tr_bandwidthConstruct( tr_bandwidth * b, tr_session * session, tr_bandwidth * parent )
    100100{
     
    105105    b->band[TR_DOWN].honorParentLimits = true;
    106106    tr_bandwidthSetParent( b, parent );
    107     return b;
    108 }
    109 
    110 tr_bandwidth*
     107}
     108
     109void
    111110tr_bandwidthDestruct( tr_bandwidth * b )
    112111{
     
    117116
    118117    memset( b, ~0, sizeof( tr_bandwidth ) );
    119     return b;
    120118}
    121119
Note: See TracChangeset for help on using the changeset viewer.