mirror of
https://github.com/transmission/transmission
synced 2024-12-30 19:46:56 +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);
|
||||
struct ChokeData * choke = tr_new0 (struct ChokeData, peerCount);
|
||||
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);
|
||||
|
||||
assert (swarmIsLocked (s));
|
||||
|
|
|
@ -1007,7 +1007,7 @@ setFilePriorities (tr_torrent * tor,
|
|||
|
||||
static const char*
|
||||
setFileDLs (tr_torrent * tor,
|
||||
int do_download,
|
||||
bool do_download,
|
||||
tr_variant * list)
|
||||
{
|
||||
int i;
|
||||
|
|
Loading…
Reference in a new issue