Ignore:
Timestamp:
Mar 22, 2011, 3:19:54 PM (11 years ago)
Author:
jordan
Message:

(trunk) #4138 "use stdbool.h instead of tr_bool" -- done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/verify.c

    r12177 r12204  
    3939};
    4040
    41 static tr_bool
    42 verifyTorrent( tr_torrent * tor, tr_bool * stopFlag )
     41static bool
     42verifyTorrent( tr_torrent * tor, bool * stopFlag )
    4343{
    4444    time_t end;
     
    4646    int fd = -1;
    4747    int64_t filePos = 0;
    48     tr_bool changed = 0;
    49     tr_bool hadPiece = 0;
     48    bool changed = 0;
     49    bool hadPiece = 0;
    5050    time_t lastSleptAt = 0;
    5151    uint32_t piecePos = 0;
     
    109109        {
    110110            time_t now;
    111             tr_bool hasPiece;
     111            bool hasPiece;
    112112            uint8_t hash[SHA_DIGEST_LENGTH];
    113113
     
    181181static tr_list * verifyList = NULL;
    182182static tr_thread * verifyThread = NULL;
    183 static tr_bool stopCurrent = FALSE;
     183static bool stopCurrent = false;
    184184
    185185static tr_lock*
     
    202202
    203203        tr_lockLock( getVerifyLock( ) );
    204         stopCurrent = FALSE;
     204        stopCurrent = false;
    205205        node = (struct verify_node*) verifyList ? verifyList->data : NULL;
    206206        if( node == NULL )
     
    291291    if( tor == currentNode.torrent )
    292292    {
    293         stopCurrent = TRUE;
     293        stopCurrent = true;
    294294        while( stopCurrent )
    295295        {
     
    313313    tr_lockLock( getVerifyLock( ) );
    314314
    315     stopCurrent = TRUE;
     315    stopCurrent = true;
    316316    tr_list_free( &verifyList, tr_free );
    317317
Note: See TracChangeset for help on using the changeset viewer.