mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
make tr_info.webseedCount and tr_info.trackerCount unsigned.
This commit is contained in:
@@ -1351,7 +1351,7 @@ refreshWebseedList (struct DetailsImpl * di, tr_torrent ** torrents, int n)
|
||||
|
||||
/* step 2: add any new webseeds */
|
||||
for (i=0; i<n; ++i) {
|
||||
int j;
|
||||
unsigned int j;
|
||||
const tr_torrent * tor = torrents[i];
|
||||
const tr_info * inf = tr_torrentInfo (tor);
|
||||
total += inf->webseedCount;
|
||||
@@ -1375,7 +1375,7 @@ refreshWebseedList (struct DetailsImpl * di, tr_torrent ** torrents, int n)
|
||||
|
||||
/* step 3: update the webseeds */
|
||||
for (i=0; i<n; ++i) {
|
||||
int j;
|
||||
unsigned int j;
|
||||
tr_torrent * tor = torrents[i];
|
||||
const tr_info * inf = tr_torrentInfo (tor);
|
||||
double * speeds_KBps = tr_torrentWebSpeeds_KBps (tor);
|
||||
@@ -2159,7 +2159,7 @@ on_edit_trackers_response (GtkDialog * dialog, int response, gpointer data)
|
||||
static void
|
||||
get_editable_tracker_list (GString * gstr, const tr_torrent * tor)
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
int tier = 0;
|
||||
const tr_info * inf = tr_torrentInfo (tor);
|
||||
for (i=0; i<inf->trackerCount; ++i) {
|
||||
|
||||
@@ -552,7 +552,7 @@ test_category (tr_torrent * tor, int active_category_type, const char * host)
|
||||
return tr_torrentGetPriority (tor) == TR_PRI_LOW;
|
||||
|
||||
case CAT_FILTER_TYPE_HOST: {
|
||||
int i;
|
||||
unsigned int i;
|
||||
char tmp[1024];
|
||||
for (i=0; i<inf->trackerCount; ++i) {
|
||||
gtr_get_host_from_url (tmp, sizeof (tmp), inf->trackers[i].announce);
|
||||
|
||||
@@ -1011,7 +1011,7 @@ on_torrent_metadata_changed (tr_torrent * tor, void * gcore)
|
||||
static unsigned int
|
||||
build_torrent_trackers_hash (tr_torrent * tor)
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
const char * pch;
|
||||
uint64_t hash = 0;
|
||||
const tr_info * const inf = tr_torrentInfo (tor);
|
||||
|
||||
Reference in New Issue
Block a user