(trunk, libT) #5651 'int to bool patch' -- fixed, patch by rajmannugetr

This commit is contained in:
Jordan Lee 2014-04-27 23:10:01 +00:00
parent d87e091fff
commit 5a2268289e
5 changed files with 5 additions and 5 deletions

View File

@ -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)
{

View File

@ -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.");

View File

@ -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;

View File

@ -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++)

View File

@ -604,7 +604,7 @@ jsonContainerEndFunc (const tr_variant * val,
void * vdata)
{
struct jsonWalk * data = vdata;
int emptyContainer = false;
bool emptyContainer = false;
jsonPopParent (data);