Changeset 11781


Ignore:
Timestamp:
Jan 29, 2011, 6:54:43 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) #3955 "tr_torrentNext() should be inlined" -- fixed.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r11775 r11781  
    23492349}
    23502350
    2351 tr_torrent*
    2352 tr_torrentNext( tr_session * session,
    2353                 tr_torrent * tor )
    2354 {
    2355     tr_torrent * ret;
    2356 
    2357     assert( !session || tr_isSession( session ) );
    2358 
    2359     if( !session )
    2360         ret = NULL;
    2361     else if( !tor )
    2362         ret = session->torrentList;
    2363     else
    2364         ret = tor->next;
    2365 
    2366     return ret;
    2367 }
    2368 
    23692351/***
    23702352****
  • trunk/libtransmission/torrent.h

    r11709 r11781  
    9292void             tr_torrentSetChecked( tr_torrent * tor, time_t when );
    9393
    94 tr_torrent*      tr_torrentNext( tr_session  * session,
    95                                  tr_torrent  * current );
    96 
    9794void             tr_torrentCheckSeedLimit( tr_torrent * tor );
    9895
     
    252249    tr_bool                    finishedSeedingByIdle;
    253250};
     251
     252static inline tr_torrent*
     253tr_torrentNext( tr_session * session, tr_torrent * current )
     254{
     255    return current ? current->next : session->torrentList;
     256}
    254257
    255258/* get the index of this piece's first block */
Note: See TracChangeset for help on using the changeset viewer.