mirror of
https://github.com/transmission/transmission
synced 2025-02-22 22:20:39 +00:00
(trunk libT) make allocateBandwidth()'s "priority" field const.
This commit is contained in:
parent
d32c5b36c7
commit
ddaaa92c31
1 changed files with 1 additions and 3 deletions
|
@ -167,7 +167,7 @@ allocateBandwidth( tr_bandwidth * b,
|
|||
unsigned int period_msec,
|
||||
tr_ptrArray * peer_pool )
|
||||
{
|
||||
tr_priority_t priority;
|
||||
const tr_priority_t priority = MAX( parent_priority, b->priority );
|
||||
|
||||
assert( tr_isBandwidth( b ) );
|
||||
assert( tr_isDirection( dir ) );
|
||||
|
@ -186,8 +186,6 @@ allocateBandwidth( tr_bandwidth * b,
|
|||
#endif
|
||||
}
|
||||
|
||||
priority = MAX( parent_priority, b->priority );
|
||||
|
||||
/* add this bandwidth's peer, if any, to the peer pool */
|
||||
if( b->peer != NULL ) {
|
||||
b->peer->priority = priority;
|
||||
|
|
Loading…
Reference in a new issue