Changeset 1169


Ignore:
Timestamp:
Dec 7, 2006, 9:56:36 PM (15 years ago)
Author:
livings124
Message:

for-loops are so much cooler than while-loops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/multitracker/libtransmission/transmission.c

    r1168 r1169  
    720720    for( i = 0; i < inf->trackerAnnounceTiers; i++ )
    721721    {
    722         currentAnnounce = inf->trackerAnnounceList[i];
    723         while( currentAnnounce != NULL )
     722        for( currentAnnounce = inf->trackerAnnounceList[i]; currentAnnounce != NULL; currentAnnounce = nextAnnounce )
    724723        {
    725724            nextAnnounce = currentAnnounce->nextItem;
    726725            free( currentAnnounce );
    727             currentAnnounce = nextAnnounce;
    728726        }
    729727    }
Note: See TracChangeset for help on using the changeset viewer.