Changeset 3447


Ignore:
Timestamp:
Oct 17, 2007, 6:23:59 PM (15 years ago)
Author:
charles
Message:

remove tr_peerMsgsSetChoke()'s return value, which was always ignored anyway

Location:
trunk/libtransmission
Files:
2 edited

Legend:

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

    r3416 r3447  
    391391#define MIN_CHOKE_PERIOD_SEC 10
    392392
    393 int
     393void
    394394tr_peerMsgsSetChoke( tr_peermsgs * msgs, int choke )
    395395{
    396     int ret;
    397396    const time_t fibrillationTime = time(NULL) - MIN_CHOKE_PERIOD_SEC;
    398397
     
    404403    {
    405404        dbgmsg( msgs, "Not changing choke to %d to avoid fibrillation", choke );
    406         ret = FALSE;
    407405    }
    408406    else if( msgs->info->peerIsChoked != choke )
     
    429427        protocolSendChoke( msgs, choke );
    430428        msgs->info->chokeChangedAt = time( NULL );
    431         ret = TRUE;
    432     }
    433 
    434     return ret;
     429    }
    435430}
    436431
  • trunk/libtransmission/peer-msgs.h

    r3416 r3447  
    3030
    3131
    32 int          tr_peerMsgsSetChoke( tr_peermsgs *, int doChoke );
     32void         tr_peerMsgsSetChoke( tr_peermsgs *, int doChoke );
    3333
    3434void         tr_peerMsgsHave( tr_peermsgs * msgs,
Note: See TracChangeset for help on using the changeset viewer.