Changeset 1177


Ignore:
Timestamp:
Dec 8, 2006, 6:42:02 AM (14 years ago)
Author:
livings124
Message:

get rid of some warnings/errors

Location:
branches/multitracker
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/multitracker/Transmission.xcodeproj/project.pbxproj

    r1176 r1177  
    10821082                                GCC_VERSION_ppc = 4.0;
    10831083                                GCC_WARN_ABOUT_RETURN_TYPE = NO;
    1084                                 GCC_WARN_SIGN_COMPARE = YES;
     1084                                GCC_WARN_SIGN_COMPARE = NO;
    10851085                                MACOSX_DEPLOYMENT_TARGET_i386 = 10.4;
    10861086                                MACOSX_DEPLOYMENT_TARGET_ppc = 10.4;
  • branches/multitracker/libtransmission/tracker.c

    r1176 r1177  
    313313}
    314314
    315 int tr_trackerPulse( tr_tracker_t * tc )
     315void tr_trackerPulse( tr_tracker_t * tc )
    316316{
    317317    tr_torrent_t * tor = tc->tor;
     
    326326            tr_inf( "Tracker: failed to connect to %s, trying next", tc->trackerAddress );
    327327           
    328             announcePtr = tc->trackerAnnounceListPtr[tc->announceTier];
    329             for( i = 0; i <= tc->announceTierLast; i++ )
     328            prevAnnouncePtr = tc->trackerAnnounceListPtr[tc->announceTier];
     329            announcePtr = prevAnnouncePtr->nextItem;
     330            for( i = 0; i < tc->announceTierLast; i++ )
    330331            {
    331332                prevAnnouncePtr = announcePtr;
     
    364365        if( tr_fdSocketWillCreate( tor->fdlimit, 1 ) )
    365366        {
    366             return 0;
     367            return;
    367368        }
    368369        tc->dateTry = tr_date();
     
    416417        if( tr_fdSocketWillCreate( tor->fdlimit, 1 ) )
    417418        {
    418             return 0;
     419            return;
    419420        }
    420421        tc->dateScrape = tr_date();
     
    443444    }
    444445
    445     return 0;
     446    return;
    446447}
    447448
     
    970971int tr_trackerScrape( tr_torrent_t * tor, int * s, int * l, int * d )
    971972{
    972    
    973973    tr_tracker_t * tc;
    974974    tr_http_t    * http;
     
    976976    int            len;
    977977    int            ret;
     978   
     979    tc = tor->tracker;
    978980
    979981    if( !tc->trackerCanScrape )
  • branches/multitracker/libtransmission/tracker.h

    r1173 r1177  
    3030tr_tracker_t * tr_trackerInit      ( tr_torrent_t * );
    3131void           tr_trackerChangePort( tr_tracker_t *, int );
    32 int            tr_trackerPulse     ( tr_tracker_t * );
     32void            tr_trackerPulse     ( tr_tracker_t * );
    3333void           tr_trackerCompleted ( tr_tracker_t * );
    3434void           tr_trackerStopped   ( tr_tracker_t * );
Note: See TracChangeset for help on using the changeset viewer.