mirror of
https://github.com/transmission/transmission
synced 2025-01-20 05:49:11 +00:00
#5963: Fix two more places where int is used in boolean context
This commit is contained in:
parent
33d05a71f8
commit
e3c5ab74ed
2 changed files with 2 additions and 2 deletions
|
@ -3059,7 +3059,7 @@ rechokeUploads (tr_swarm * s, const uint64_t now)
|
||||||
tr_peer ** peers = (tr_peer**) tr_ptrArrayBase (&s->peers);
|
tr_peer ** peers = (tr_peer**) tr_ptrArrayBase (&s->peers);
|
||||||
struct ChokeData * choke = tr_new0 (struct ChokeData, peerCount);
|
struct ChokeData * choke = tr_new0 (struct ChokeData, peerCount);
|
||||||
const tr_session * session = s->manager->session;
|
const tr_session * session = s->manager->session;
|
||||||
const int chokeAll = !tr_torrentIsPieceTransferAllowed (s->tor, TR_CLIENT_TO_PEER);
|
const bool chokeAll = !tr_torrentIsPieceTransferAllowed (s->tor, TR_CLIENT_TO_PEER);
|
||||||
const bool isMaxedOut = isBandwidthMaxedOut (&s->tor->bandwidth, now, TR_UP);
|
const bool isMaxedOut = isBandwidthMaxedOut (&s->tor->bandwidth, now, TR_UP);
|
||||||
|
|
||||||
assert (swarmIsLocked (s));
|
assert (swarmIsLocked (s));
|
||||||
|
|
|
@ -1007,7 +1007,7 @@ setFilePriorities (tr_torrent * tor,
|
||||||
|
|
||||||
static const char*
|
static const char*
|
||||||
setFileDLs (tr_torrent * tor,
|
setFileDLs (tr_torrent * tor,
|
||||||
int do_download,
|
bool do_download,
|
||||||
tr_variant * list)
|
tr_variant * list)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in a new issue