mirror of
https://github.com/transmission/transmission
synced 2025-03-03 18:25:35 +00:00
integral sign correctness in makemeta
This commit is contained in:
parent
e6fbcaeae6
commit
18de1db5b5
2 changed files with 7 additions and 7 deletions
|
@ -167,7 +167,7 @@ tr_metaInfoBuilderFree( tr_metainfo_builder * builder )
|
||||||
{
|
{
|
||||||
if( builder != NULL )
|
if( builder != NULL )
|
||||||
{
|
{
|
||||||
int i;
|
uint32_t i;
|
||||||
for( i=0; i<builder->fileCount; ++i )
|
for( i=0; i<builder->fileCount; ++i )
|
||||||
tr_free( builder->files[i].filename );
|
tr_free( builder->files[i].filename );
|
||||||
tr_free( builder->files );
|
tr_free( builder->files );
|
||||||
|
@ -186,7 +186,7 @@ tr_metaInfoBuilderFree( tr_metainfo_builder * builder )
|
||||||
static uint8_t*
|
static uint8_t*
|
||||||
getHashInfo ( tr_metainfo_builder * b )
|
getHashInfo ( tr_metainfo_builder * b )
|
||||||
{
|
{
|
||||||
int fileIndex = 0;
|
uint32_t fileIndex = 0;
|
||||||
uint8_t *ret = tr_new0( uint8_t, SHA_DIGEST_LENGTH * b->pieceCount );
|
uint8_t *ret = tr_new0( uint8_t, SHA_DIGEST_LENGTH * b->pieceCount );
|
||||||
uint8_t *walk = ret;
|
uint8_t *walk = ret;
|
||||||
uint8_t *buf;
|
uint8_t *buf;
|
||||||
|
@ -296,7 +296,7 @@ static void
|
||||||
makeFilesList( benc_val_t * list,
|
makeFilesList( benc_val_t * list,
|
||||||
const tr_metainfo_builder * builder )
|
const tr_metainfo_builder * builder )
|
||||||
{
|
{
|
||||||
int i = 0;
|
uint32_t i = 0;
|
||||||
|
|
||||||
tr_bencListReserve( list, builder->fileCount );
|
tr_bencListReserve( list, builder->fileCount );
|
||||||
|
|
||||||
|
|
|
@ -30,9 +30,9 @@ typedef struct tr_metainfo_builder
|
||||||
char * top;
|
char * top;
|
||||||
tr_metainfo_builder_file * files;
|
tr_metainfo_builder_file * files;
|
||||||
uint64_t totalSize;
|
uint64_t totalSize;
|
||||||
int fileCount;
|
uint32_t fileCount;
|
||||||
int pieceSize;
|
uint32_t pieceSize;
|
||||||
int pieceCount;
|
uint32_t pieceCount;
|
||||||
int isSingleFile;
|
int isSingleFile;
|
||||||
tr_handle * handle;
|
tr_handle * handle;
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ typedef struct tr_metainfo_builder
|
||||||
*** tell tr_makeMetaInfo() to abort and clean up after itself.
|
*** tell tr_makeMetaInfo() to abort and clean up after itself.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
int pieceIndex;
|
uint32_t pieceIndex;
|
||||||
int abortFlag;
|
int abortFlag;
|
||||||
int isDone;
|
int isDone;
|
||||||
int failed; /* only meaningful if isDone is set */
|
int failed; /* only meaningful if isDone is set */
|
||||||
|
|
Loading…
Reference in a new issue