Changeset 11581


Ignore:
Timestamp:
Dec 23, 2010, 7:02:21 PM (11 years ago)
Author:
charles
Message:

(trunk daemon) fix compiler warnings on mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r11524 r11581  
    101101    seconds = ( seconds % 3600 ) % 60;
    102102
    103     tr_snprintf( d, sizeof( d ), "%'d day%s", days, days==1?"":"s" );
    104     tr_snprintf( h, sizeof( h ), "%'d hour%s", hours, hours==1?"":"s" );
    105     tr_snprintf( m, sizeof( m ), "%'d minute%s", minutes, minutes==1?"":"s" );
    106     tr_snprintf( s, sizeof( s ), "%'d second%s", seconds, seconds==1?"":"s" );
     103    tr_snprintf( d, sizeof( d ), "%'d %s", days, days==1?"day":"days" );
     104    tr_snprintf( h, sizeof( h ), "%'d %s", hours, hours==1?"hour":"hours" );
     105    tr_snprintf( m, sizeof( m ), "%'d %s", minutes, minutes==1?"minute":"minutes" );
     106    tr_snprintf( s, sizeof( s ), "%'d %s", seconds, seconds==1?"seconds":"seconds" );
    107107
    108108    if( days )
     
    13471347                    tr_strltime( buf, now - lastAnnounceTime, sizeof( buf ) );
    13481348                    if( lastAnnounceSucceeded )
    1349                         printf( "  Got a list of %'d peers %s ago\n",
     1349                        printf( "  Got a list of %d peers %s ago\n",
    13501350                                (int)lastAnnouncePeerCount, buf );
    13511351                    else if( lastAnnounceTimedOut )
     
    13781378                    tr_strltime( buf, now - lastScrapeTime, sizeof( buf ) );
    13791379                    if( lastScrapeSucceeded )
    1380                         printf( "  Tracker had %'d seeders and %'d leechers %s ago\n",
     1380                        printf( "  Tracker had %d seeders and %d leechers %s ago\n",
    13811381                                (int)seederCount, (int)leecherCount, buf );
    13821382                    else if( lastScrapeTimedOut )
Note: See TracChangeset for help on using the changeset viewer.