Changeset 751


Ignore:
Timestamp:
Aug 9, 2006, 10:53:27 PM (15 years ago)
Author:
livings124
Message:

Small iterator change in libtransmission by oleo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.c

    r679 r751  
    387387void tr_torrentIterate( tr_handle_t * h, tr_callback_t func, void * d )
    388388{
    389     tr_torrent_t * tor;
    390 
    391     for( tor = h->torrentList; tor; tor = tor->next )
    392     {
     389    tr_torrent_t * tor, * next;
     390
     391    for( tor = h->torrentList; tor; tor = next )
     392    {
     393        next = tor->next;
    393394        func( tor, d );
    394395    }
Note: See TracChangeset for help on using the changeset viewer.