Changeset 13722
- Timestamp:
- Dec 30, 2012, 10:06:45 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gtk/details.c
r13683 r13722 1352 1352 /* step 2: add any new webseeds */ 1353 1353 for (i=0; i<n; ++i) { 1354 int j;1354 unsigned int j; 1355 1355 const tr_torrent * tor = torrents[i]; 1356 1356 const tr_info * inf = tr_torrentInfo (tor); … … 1376 1376 /* step 3: update the webseeds */ 1377 1377 for (i=0; i<n; ++i) { 1378 int j;1378 unsigned int j; 1379 1379 tr_torrent * tor = torrents[i]; 1380 1380 const tr_info * inf = tr_torrentInfo (tor); … … 2160 2160 get_editable_tracker_list (GString * gstr, const tr_torrent * tor) 2161 2161 { 2162 int i;2162 unsigned int i; 2163 2163 int tier = 0; 2164 2164 const tr_info * inf = tr_torrentInfo (tor); -
trunk/gtk/filter.c
r13656 r13722 553 553 554 554 case CAT_FILTER_TYPE_HOST: { 555 int i;555 unsigned int i; 556 556 char tmp[1024]; 557 557 for (i=0; i<inf->trackerCount; ++i) { -
trunk/gtk/tr-core.c
r13689 r13722 1012 1012 build_torrent_trackers_hash (tr_torrent * tor) 1013 1013 { 1014 int i;1014 unsigned int i; 1015 1015 const char * pch; 1016 1016 uint64_t hash = 0; -
trunk/libtransmission/metainfo.c
r13683 r13722 546 546 tr_metainfoFree (tr_info * inf) 547 547 { 548 int i;548 unsigned int i; 549 549 tr_file_index_t ff; 550 550 -
trunk/libtransmission/peer-mgr.c
r13709 r13722 514 514 rebuildWebseedArray (Torrent * t, tr_torrent * tor) 515 515 { 516 int i;516 unsigned int i; 517 517 const tr_info * inf = &tor->info; 518 518 … … 2689 2689 tr_peerMgrWebSpeeds_KBps (const tr_torrent * tor) 2690 2690 { 2691 int i;2692 int webseedCount;2691 unsigned int i; 2692 unsigned int webseedCount; 2693 2693 const Torrent * t; 2694 2694 const tr_webseed ** webseeds; -
trunk/libtransmission/rpcimpl.c
r13683 r13722 447 447 448 448 static void 449 addWebseeds (const tr_info * info,450 tr_variant *webseeds)451 { 452 453 454 for (i = 0; i< info->webseedCount; ++i)455 449 addWebseeds (const tr_info * info, 450 tr_variant * webseeds) 451 { 452 unsigned int i; 453 454 for (i=0; i< info->webseedCount; ++i) 455 tr_variantListAddStr (webseeds, info->webseeds[i]); 456 456 } 457 457 458 458 static void 459 addTrackers (const tr_info * info,460 tr_variant *trackers)461 { 462 463 464 for (i = 0; i <info->trackerCount; ++i)465 { 466 467 tr_variant *d = tr_variantListAddDict (trackers, 4);468 469 470 471 459 addTrackers (const tr_info * info, 460 tr_variant * trackers) 461 { 462 unsigned int i; 463 464 for (i=0; i<info->trackerCount; ++i) 465 { 466 const tr_tracker_info * t = &info->trackers[i]; 467 tr_variant * d = tr_variantListAddDict (trackers, 4); 468 tr_variantDictAddStr (d, TR_KEY_announce, t->announce); 469 tr_variantDictAddInt (d, TR_KEY_id, t->id); 470 tr_variantDictAddStr (d, TR_KEY_scrape, t->scrape); 471 tr_variantDictAddInt (d, TR_KEY_tier, t->tier); 472 472 } 473 473 } -
trunk/libtransmission/torrent-magnet.c
r13683 r13722 374 374 tr_torrentInfoGetMagnetLink (const tr_info * inf) 375 375 { 376 int i;376 unsigned int i; 377 377 const char * name; 378 378 struct evbuffer * s = evbuffer_new (); -
trunk/libtransmission/torrent.c
r13688 r13722 1257 1257 } 1258 1258 1259 if ((s->leftUntilDone > s->desiredAvailable) && (tor->info.webseedCount < 0))1259 if ((s->leftUntilDone > s->desiredAvailable) && (tor->info.webseedCount < 1)) 1260 1260 s->eta = TR_ETA_NOT_AVAIL; 1261 1261 else if (tor->etaDLSpeed_KBps < 1) -
trunk/libtransmission/transmission.h
r13703 r13722 1725 1725 time_t dateCreated; 1726 1726 1727 inttrackerCount;1728 intwebseedCount;1727 unsigned int trackerCount; 1728 unsigned int webseedCount; 1729 1729 tr_file_index_t fileCount; 1730 1730 uint32_t pieceSize; -
trunk/qt/app.cc
r13667 r13722 470 470 main( int argc, char * argv[] ) 471 471 { 472 std::cerr << "sizeof double " << sizeof(double) << std::endl; 473 std::cerr << "sizeof Speed " << sizeof(Speed) << std::endl; 474 std::cerr << "sizeof int " << sizeof(int) << std::endl; 475 std::cerr << "sizeof bool " << sizeof(bool) << std::endl; 476 std::cerr << "sizeof uint64_t " << sizeof(uint64_t) << std::endl; 477 std::cerr << "sizeof QString is " << sizeof(QString) << std::endl; 478 std::cerr << "sizeof TrFile is " << sizeof(struct TrFile) << std::endl; 479 std::cerr << "sizeof Peer is " << sizeof(Peer) << std::endl; 480 std::cerr << "sizeof TrackerStat is " << sizeof(TrackerStat) << std::endl; 481 472 482 // find .torrents, URLs, magnet links, etc in the command-line args 473 483 int c; -
trunk/qt/my-valgrind.sh
r13687 r13722 1 1 #/bin/sh 2 valgrind --tool=cachegrind ./transmission-qt 2>&1 | tee runlog 2 #valgrind --tool=cachegrind ./transmission-qt 2>&1 | tee runlog 3 valgrind --tool=massif --threshold=0.2 ./transmission-qt 2>&1 | tee runlog 3 4 #valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=48 --log-file=x-valgrind --show-reachable=no ./transmission-qt 2>&1 | tee runlog -
trunk/qt/torrent.cc
r13719 r13722 556 556 557 557 myFiles.clear (); 558 myFiles.reserve (tr_variantListSize (files)); 558 559 559 560 while ((child = tr_variantListChild (files, i))) -
trunk/utils/show.c
r13683 r13722 123 123 showInfo (const tr_info * inf) 124 124 { 125 int i;125 unsigned int i; 126 126 char buf[128]; 127 127 tr_file ** files; … … 186 186 printf ("\nFILES\n\n"); 187 187 files = tr_new (tr_file*, inf->fileCount); 188 for (i=0; i< (int)inf->fileCount; ++i)188 for (i=0; i<inf->fileCount; ++i) 189 189 files[i] = &inf->files[i]; 190 190 qsort (files, inf->fileCount, sizeof (tr_file*), compare_files_by_name); 191 for (i=0; i< (int)inf->fileCount; ++i)191 for (i=0; i<inf->fileCount; ++i) 192 192 printf (" %s (%s)\n", files[i]->name, tr_formatter_size_B (buf, files[i]->length, sizeof (buf))); 193 193 tr_free (files); … … 218 218 doScrape (const tr_info * inf) 219 219 { 220 int i;220 unsigned int i; 221 221 222 222 for (i=0; i<inf->trackerCount; ++i)
Note: See TracChangeset
for help on using the changeset viewer.