Changeset 14636


Ignore:
Timestamp:
Dec 27, 2015, 3:19:03 PM (6 years ago)
Author:
mikedld
Message:

#5963: Fix two more places where int is used in boolean context

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r14613 r14636  
    30603060  struct ChokeData * choke = tr_new0 (struct ChokeData, peerCount);
    30613061  const tr_session * session = s->manager->session;
    3062   const int chokeAll = !tr_torrentIsPieceTransferAllowed (s->tor, TR_CLIENT_TO_PEER);
     3062  const bool chokeAll = !tr_torrentIsPieceTransferAllowed (s->tor, TR_CLIENT_TO_PEER);
    30633063  const bool isMaxedOut = isBandwidthMaxedOut (&s->tor->bandwidth, now, TR_UP);
    30643064
  • trunk/libtransmission/rpcimpl.c

    r14633 r14636  
    10081008static const char*
    10091009setFileDLs (tr_torrent * tor,
    1010             int          do_download,
     1010            bool         do_download,
    10111011            tr_variant * list)
    10121012{
Note: See TracChangeset for help on using the changeset viewer.