Ignore:
Timestamp:
Apr 2, 2009, 5:30:29 PM (13 years ago)
Author:
charles
Message:

(trunk) modify tr_torrentParse() and tr_torrentNew() arguments s.t. they use the ctor's session instead of passing it in again. Allow a NULL session pointer for some cases of tr_torrentParse().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r8118 r8122  
    13691369                char * path = tr_buildPath( dirname, d->d_name, NULL );
    13701370                tr_ctorSetMetainfoFromFile( ctor, path );
    1371                 if(( tor = tr_torrentNew( session, ctor, NULL )))
     1371                if(( tor = tr_torrentNew( ctor, NULL )))
    13721372                {
    13731373                    tr_list_append( &list, tor );
     
    16201620                char * path = tr_buildPath( dirname, d->d_name, NULL );
    16211621                tr_ctorSetMetainfoFromFile( ctor, path );
    1622                 if( !tr_torrentParse( session, ctor, &inf ) )
     1622                if( !tr_torrentParse( ctor, &inf ) )
    16231623                {
    16241624                    tr_list_append( &list, tr_strdup( inf.hashString ) );
Note: See TracChangeset for help on using the changeset viewer.