mirror of
https://github.com/transmission/transmission
synced 2025-02-22 06:00:41 +00:00
(trunk, libT) #5651 'int to bool patch' -- fixed, patch by rajmannugetr
This commit is contained in:
parent
d87e091fff
commit
5a2268289e
5 changed files with 5 additions and 5 deletions
|
@ -59,7 +59,7 @@ const tr_address tr_inaddr_any = { TR_AF_INET, { { { { INADDR_ANY, 0x00, 0x00, 0
|
|||
void
|
||||
tr_netInit (void)
|
||||
{
|
||||
static int initialized = false;
|
||||
static bool initialized = false;
|
||||
|
||||
if (!initialized)
|
||||
{
|
||||
|
|
|
@ -1339,7 +1339,7 @@ peerMadeRequest (tr_peerMsgs * msgs, const struct peer_request * req)
|
|||
const int clientHasPiece = reqIsValid && tr_torrentPieceIsComplete (msgs->torrent, req->index);
|
||||
const int peerIsChoked = msgs->peer_is_choked;
|
||||
|
||||
int allow = false;
|
||||
bool allow = false;
|
||||
|
||||
if (!reqIsValid)
|
||||
dbgmsg (msgs, "rejecting an invalid request.");
|
||||
|
|
|
@ -1243,7 +1243,7 @@ tr_sessionGetIdleLimit (const tr_session * session)
|
|||
bool
|
||||
tr_sessionGetActiveSpeedLimit_Bps (const tr_session * session, tr_direction dir, unsigned int * setme_Bps)
|
||||
{
|
||||
int isLimited = true;
|
||||
bool isLimited = true;
|
||||
|
||||
if (!tr_isSession (session))
|
||||
return false;
|
||||
|
|
|
@ -204,7 +204,7 @@ test_lowerbound (void)
|
|||
int i;
|
||||
const int A[] = { 1, 2, 3, 3, 3, 5, 8 };
|
||||
const int expected_pos[] = { 0, 1, 2, 5, 5, 6, 6, 6, 7, 7 };
|
||||
const int expected_exact[] = { true, true, true, false, true, false, false, true, false, false };
|
||||
const bool expected_exact[] = { true, true, true, false, true, false, false, true, false, false };
|
||||
const int N = sizeof (A) / sizeof (A[0]);
|
||||
|
||||
for (i=1; i<=10; i++)
|
||||
|
|
|
@ -604,7 +604,7 @@ jsonContainerEndFunc (const tr_variant * val,
|
|||
void * vdata)
|
||||
{
|
||||
struct jsonWalk * data = vdata;
|
||||
int emptyContainer = false;
|
||||
bool emptyContainer = false;
|
||||
|
||||
jsonPopParent (data);
|
||||
|
||||
|
|
Loading…
Reference in a new issue