mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
add inline wrapper functions to tr_torrent to decouple the rest of the code from tr_completion
This commit is contained in:
@@ -746,7 +746,7 @@ addField (tr_torrent * const tor,
|
||||
if (tr_torrentHasMetadata (tor))
|
||||
{
|
||||
size_t byte_count = 0;
|
||||
void * bytes = tr_cpCreatePieceBitfield (&tor->completion, &byte_count);
|
||||
void * bytes = tr_torrentCreatePieceBitfield (tor, &byte_count);
|
||||
char * str = tr_base64_encode (bytes, byte_count, NULL);
|
||||
tr_variantDictAddStr (d, key, str!=NULL ? str : "");
|
||||
tr_free (str);
|
||||
|
||||
Reference in New Issue
Block a user