Changeset 5757


Ignore:
Timestamp:
May 6, 2008, 4:32:45 PM (14 years ago)
Author:
charles
Message:

fix cli compile issue reported & patched by mdomsch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/transmissioncli.c

    r5675 r5757  
    244244    if( showScrape )
    245245    {
     246        const struct tr_stat * stats;
     247        const uint64_t start = tr_date( );
    246248        printf( "Scraping, Please wait...\n" );
    247         const tr_stat * stats;
    248        
    249         uint64_t start = tr_date();
    250249       
    251250        do
    252251        {
    253252            stats = tr_torrentStat( tor );
    254             if( stats == NULL || tr_date() - start > 20000 )
     253            if( !stats || tr_date() - start > 20000 )
    255254            {
    256255                printf( "Scrape failed.\n" );
     
    277276        char string[LINEWIDTH];
    278277        int  chars = 0;
    279         const tr_stat * s;
     278        const struct tr_stat * s;
    280279
    281280        tr_wait( 1000 );
Note: See TracChangeset for help on using the changeset viewer.