Changeset 7614 for trunk/libtransmission/bandwidth.c
- Timestamp:
- Jan 4, 2009, 4:59:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/bandwidth.c
r7594 r7614 183 183 if( 1 ) { 184 184 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 ); 187 187 for( i=0; i<n; ++i ) 188 188 allocateBandwidth( children[i], dir, period_msec, peer_pool ); … … 203 203 * 2. accumulate an array of all the peerIos from b and its subtree. */ 204 204 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 ); 207 207 208 208 /* Stop all peers from listening for the socket to be ready for IO.
Note: See TracChangeset
for help on using the changeset viewer.