Changeset 10255
- Timestamp:
- Feb 22, 2010, 12:15:27 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/transmission.h
r10174 r10255 1225 1225 * @param trackers An array of trackers, sorted by tier from first to last. 1226 1226 * NOTE: only the `tier' and `announce' fields are used. 1227 * libtransmission derives `scrape' from `announce'. 1227 * libtransmission derives `scrape' from `announce' 1228 * and reassigns 'id'. 1228 1229 * @param trackerCount size of the `trackers' array 1229 1230 */ -
trunk/macosx/Torrent.m
r10244 r10255 636 636 tr_tracker_info * trackerStructs = tr_new(tr_tracker_info, oldTrackerCount+1); 637 637 for (NSUInteger i=0; i < oldTrackerCount; ++i) 638 {639 638 trackerStructs[i] = fInfo->trackers[i]; 640 trackerStructs[i].id = i;641 }642 639 643 640 trackerStructs[oldTrackerCount].announce = (char *)[tracker UTF8String]; … … 660 657 { 661 658 if (![removeIdentifiers containsIndex: fInfo->trackers[i].id]) 662 { 663 trackerStructs[newCount] = fInfo->trackers[i]; 664 trackerStructs[newCount].id = newCount++; 665 } 659 trackerStructs[newCount++] = fInfo->trackers[i]; 666 660 } 667 661
Note: See TracChangeset
for help on using the changeset viewer.