Changeset 5675


Ignore:
Timestamp:
Apr 24, 2008, 2:00:38 AM (14 years ago)
Author:
charles
Message:

#377: get cli building again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/transmissioncli.c

    r5646 r5675  
    192192        if( !tr_torrentParse( h, ctor, &info ) )
    193193        {
     194            int prevTier = -1;
    194195            tr_file_index_t ff;
    195196
     
    201202            printf( "name:\t%s\n", info.name );
    202203
    203             for( i=0; i<info.trackerTiers; ++i ) {
    204                 int j;
    205                 printf( "tracker tier #%d:\n", ( i+1 ) );
    206                 for( j=0; j<info.trackerList[i].count; ++j ) {
    207                     const tr_tracker_info * tracker = &info.trackerList[i].list[j];
    208                     printf( "\taddress:\t%s:%d\n", tracker->address, tracker->port );
    209                     printf( "\tannounce:\t%s\n", tracker->announce );
    210                     printf( "\n" );
     204            for( i=0; i<info.trackerCount; ++i ) {
     205                if( prevTier != info.trackers[i].tier ) {
     206                    prevTier = info.trackers[i].tier;
     207                    printf( "\ntracker tier #%d:\n", (prevTier+1) );
    211208                }
     209                printf( "\tannounce:\t%s\n", info.trackers[i].announce );
    212210            }
    213211
Note: See TracChangeset for help on using the changeset viewer.