Changeset 12171


Ignore:
Timestamp:
Mar 16, 2011, 12:49:43 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) minor tweak to the cache sorting code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/cache.c

    r12012 r12171  
    105105}
    106106
     107/* higher rank comes before lower rank */
    107108static int
    108109compareRuns( const void * va, const void * vb )
    109110{
    110     const struct run_info a = *(const struct run_info*)va;
    111     const struct run_info b = *(const struct run_info*)vb;
    112     return b.rank - a.rank;
     111    const struct run_info * a = va;
     112    const struct run_info * b = vb;
     113    return b->rank - a->rank;
    113114}
    114115
Note: See TracChangeset for help on using the changeset viewer.