Ignore:
Timestamp:
Jan 4, 2009, 4:59:15 PM (12 years ago)
Author:
charles
Message:

(trunk libT) minor tr_ptrArray API cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bandwidth.c

    r7594 r7614  
    183183    if( 1 ) {
    184184        int i;
    185         struct tr_bandwidth ** children = (struct tr_bandwidth**) TR_PTR_ARRAY_DATA( &b->children );
    186         const int n = TR_PTR_ARRAY_LENGTH( &b->children );
     185        struct tr_bandwidth ** children = (struct tr_bandwidth**) tr_ptrArrayBase( &b->children );
     186        const int n = tr_ptrArraySize( &b->children );
    187187        for( i=0; i<n; ++i )
    188188            allocateBandwidth( children[i], dir, period_msec, peer_pool );
     
    203203     * 2. accumulate an array of all the peerIos from b and its subtree. */
    204204    allocateBandwidth( b, dir, period_msec, &tmp );
    205     peers = (struct tr_peerIo**) TR_PTR_ARRAY_DATA( &tmp );
    206     peerCount = TR_PTR_ARRAY_LENGTH( &tmp );
     205    peers = (struct tr_peerIo**) tr_ptrArrayBase( &tmp );
     206    peerCount = tr_ptrArraySize( &tmp );
    207207
    208208    /* Stop all peers from listening for the socket to be ready for IO.
Note: See TracChangeset for help on using the changeset viewer.