mirror of
https://github.com/transmission/transmission
synced 2024-12-27 10:07:40 +00:00
fix the warnings generated by the last commit
This commit is contained in:
parent
c63b548195
commit
c1f0bb6607
1 changed files with 5 additions and 5 deletions
|
@ -1327,7 +1327,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
||||||
if (fFileStat)
|
if (fFileStat)
|
||||||
tr_torrentFilesFree(fFileStat, [self fileCount]);
|
tr_torrentFilesFree(fFileStat, [self fileCount]);
|
||||||
|
|
||||||
int count;
|
tr_file_index_t count;
|
||||||
fFileStat = tr_torrentFiles(fHandle, &count);
|
fFileStat = tr_torrentFiles(fHandle, &count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1381,8 +1381,8 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
||||||
|
|
||||||
- (void) setFileCheckState: (int) state forIndexes: (NSIndexSet *) indexSet
|
- (void) setFileCheckState: (int) state forIndexes: (NSIndexSet *) indexSet
|
||||||
{
|
{
|
||||||
int count = [indexSet count], i = 0, index;
|
NSUInteger count = [indexSet count], i = 0, index;
|
||||||
int * files = malloc(count * sizeof(int));
|
tr_file_index_t * files = malloc(count * sizeof(int));
|
||||||
for (index = [indexSet firstIndex]; index != NSNotFound; index = [indexSet indexGreaterThanIndex: index])
|
for (index = [indexSet firstIndex]; index != NSNotFound; index = [indexSet indexGreaterThanIndex: index])
|
||||||
{
|
{
|
||||||
files[i] = index;
|
files[i] = index;
|
||||||
|
@ -1398,8 +1398,8 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
||||||
|
|
||||||
- (void) setFilePriority: (int) priority forIndexes: (NSIndexSet *) indexSet
|
- (void) setFilePriority: (int) priority forIndexes: (NSIndexSet *) indexSet
|
||||||
{
|
{
|
||||||
int count = [indexSet count], i = 0, index;
|
NSUInteger count = [indexSet count], i = 0, index;
|
||||||
int * files = malloc(count * sizeof(int));
|
tr_file_index_t * files = malloc(count * sizeof(int));
|
||||||
for (index = [indexSet firstIndex]; index != NSNotFound; index = [indexSet indexGreaterThanIndex: index])
|
for (index = [indexSet firstIndex]; index != NSNotFound; index = [indexSet indexGreaterThanIndex: index])
|
||||||
{
|
{
|
||||||
files[i] = index;
|
files[i] = index;
|
||||||
|
|
Loading…
Reference in a new issue