Changeset 5764


Ignore:
Timestamp:
May 6, 2008, 8:31:05 PM (14 years ago)
Author:
charles
Message:

remove occurrences of "if( 1 )"

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fastresume.c

    r5720 r5764  
    208208
    209209    /* Write progress data */
    210     if (1) {
     210    {
    211211        int i, n;
    212212        tr_time_t * mtimes;
  • trunk/libtransmission/makemeta.c

    r5713 r5764  
    115115    ret->top = tr_strdup( topFile );
    116116    ret->handle = handle;
    117     if (1) {
     117    {
    118118        struct stat sb;
    119119        stat( topFile, &sb );
     
    123123    /* build a list of files containing topFile and,
    124124       if it's a directory, all of its children */
    125     if (1) {
     125    {
    126126        char *dir, *base;
    127127        char dirbuf[MAX_PATH_LENGTH];
  • trunk/libtransmission/peer-mgr.c

    r5763 r5764  
    17501750    /* disconnect if it's been too long since piece data has been transferred.
    17511751     * this is on a sliding scale based on number of available peers... */
    1752     if( 1 ) {
     1752    {
    17531753        const int relaxStrictnessIfFewerThanN = (int)((getMaxPeerCount(tor) * 0.9) + 0.5);
    17541754        /* if we have >= relaxIfFewerThan, strictness is 100%.
Note: See TracChangeset for help on using the changeset viewer.