Ignore:
Timestamp:
Aug 21, 2008, 7:03:56 PM (13 years ago)
Author:
charles
Message:

(libT) remove some dead functions: tr_calloc(), tr_compareUint16(), tr_compareUint32()

File:
1 edited

Legend:

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

    r6599 r6616  
    185185compareAddresses( const struct in_addr * a, const struct in_addr * b )
    186186{
    187     return tr_compareUint32( a->s_addr, b->s_addr );
     187    return a->s_addr - b->s_addr;
    188188}
    189189
     
    17681768    if( a->piece_data_time < b->piece_data_time ) return  1;
    17691769
    1770     if(( i = tr_compareUint16( a->numFails, b->numFails )))
     1770    if(( i = a->numFails - b->numFails ))
    17711771        return i;
    17721772
Note: See TracChangeset for help on using the changeset viewer.