mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
(trunk) copy-by-value changes to tr_tracker_stat
This commit is contained in:
@@ -374,7 +374,8 @@ addTrackerStats( const tr_tracker_stat * st, int n, tr_benc * list )
|
||||
for( i=0; i<n; ++i )
|
||||
{
|
||||
const tr_tracker_stat * s = &st[i];
|
||||
tr_benc * d = tr_bencListAddDict( list, 23 );
|
||||
tr_benc * d = tr_bencListAddDict( list, 24 );
|
||||
tr_bencDictAddStr ( d, "announce", s->announce );
|
||||
tr_bencDictAddInt ( d, "downloadCount", s->downloadCount );
|
||||
tr_bencDictAddBool( d, "hasAnnounced", s->hasAnnounced );
|
||||
tr_bencDictAddBool( d, "hasScraped", s->hasScraped );
|
||||
@@ -653,8 +654,6 @@ torrentGet( tr_session * session,
|
||||
else for( i = 0; i < torrentCount; ++i )
|
||||
addInfo( torrents[i], tr_bencListAdd( list ), fields );
|
||||
|
||||
fprintf( stderr, "%s\n", tr_bencToStr( args_out, TR_FMT_JSON, NULL ) );
|
||||
|
||||
tr_free( torrents );
|
||||
return msg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user