mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
(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().
This commit is contained in:
@@ -355,7 +355,7 @@ main( int argc,
|
||||
{
|
||||
tr_info info;
|
||||
|
||||
if( !tr_torrentParse( h, ctor, &info ) )
|
||||
if( !tr_torrentParse( ctor, &info ) )
|
||||
{
|
||||
int i;
|
||||
const time_t start = time( NULL );
|
||||
@@ -391,7 +391,7 @@ main( int argc,
|
||||
{
|
||||
tr_info info;
|
||||
|
||||
if( !tr_torrentParse( h, ctor, &info ) )
|
||||
if( !tr_torrentParse( ctor, &info ) )
|
||||
{
|
||||
dumpInfo( stdout, &info );
|
||||
tr_metainfoFree( &info );
|
||||
@@ -401,7 +401,7 @@ main( int argc,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
tor = tr_torrentNew( h, ctor, &error );
|
||||
tor = tr_torrentNew( ctor, &error );
|
||||
tr_ctorFree( ctor );
|
||||
if( !tor )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user