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;