Changeset 12302


Ignore:
Timestamp:
Apr 3, 2011, 3:25:13 AM (11 years ago)
Author:
livings124
Message:

small cleanup when determining if two announce URLs differ only by scheme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r12301 r12302  
    586586     * function doesn't care, there's no point in removing the gaps...) */
    587587    for( i=0, in=n; i<in; ++i )
    588         for( j=0, jn=n; j<jn; ++j )
    589             if( (i!=j) && (tmp[i].port==tmp[j].port)
     588        for( j=i+1, jn=n; j<jn; ++j )
     589            if( (tmp[i].info.tier!=tmp[j].info.tier)
     590                       && (tmp[i].port==tmp[j].port)
    590591                       && !tr_strcmp0(tmp[i].host,tmp[j].host)
    591592                       && !tr_strcmp0(tmp[i].path,tmp[j].path) )
Note: See TracChangeset for help on using the changeset viewer.