From e3c5ab74ed3db703d68e76a78149f84833bd7883 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Sun, 27 Dec 2015 15:19:03 +0000 Subject: [PATCH] #5963: Fix two more places where int is used in boolean context --- libtransmission/peer-mgr.c | 2 +- libtransmission/rpcimpl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index d491b477c..c2fee43f2 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -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)); diff --git a/libtransmission/rpcimpl.c b/libtransmission/rpcimpl.c index 042818424..bb1568193 100644 --- a/libtransmission/rpcimpl.c +++ b/libtransmission/rpcimpl.c @@ -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;