projects
/
transmission
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d32c5b3
)
(trunk libT) make allocateBandwidth()'s "priority" field const.
author
Jordan Lee
<jordan@transmissionbt.com>
Wed, 11 May 2011 21:09:31 +0000
(21:09 +0000)
committer
Jordan Lee
<jordan@transmissionbt.com>
Wed, 11 May 2011 21:09:31 +0000
(21:09 +0000)
libtransmission/bandwidth.c
patch
|
blob
|
history
diff --git
a/libtransmission/bandwidth.c
b/libtransmission/bandwidth.c
index b9bb0125f24d352def075bf1d96c1075a73cad40..70bb07f4eb024b3d5d938cc6951b473b1935c815 100644
(file)
--- a/
libtransmission/bandwidth.c
+++ b/
libtransmission/bandwidth.c
@@
-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;