Changeset 11559


Ignore:
Timestamp:
Dec 21, 2010, 4:49:57 PM (11 years ago)
Author:
charles
Message:

minor tweak: tr_core_load() should return void, not int

Location:
trunk/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-core.c

    r11548 r11559  
    913913}
    914914
    915 int
     915void
    916916tr_core_load( TrCore * self, gboolean forcePaused )
    917917{
    918     int           i;
    919     int           count = 0;
     918    int i;
     919    tr_ctor * ctor;
    920920    tr_torrent ** torrents;
    921     tr_ctor *     ctor;
     921    int count = 0;
    922922
    923923    ctor = tr_ctorNew( tr_core_session( self ) );
     
    928928
    929929    torrents = tr_sessionLoadTorrents ( tr_core_session( self ), ctor, &count );
    930     for( i = 0; i < count; ++i )
     930    for( i=0; i<count; ++i )
    931931        tr_core_add_torrent( self, tr_torrent_new_preexisting( torrents[i] ), FALSE );
    932932
    933933    tr_free( torrents );
    934934    tr_ctorFree( ctor );
    935 
    936     return count;
    937935}
    938936
  • trunk/gtk/tr-core.h

    r11546 r11559  
    9696 * May trigger one or more "error" signals with TR_CORE_ERR_ADD_TORRENT
    9797 */
    98 int      tr_core_load( TrCore * self,
    99                        gboolean forcepaused );
     98void tr_core_load( TrCore * self, gboolean forcepaused );
    10099
    101100/**
Note: See TracChangeset for help on using the changeset viewer.