Changeset 14209
- Timestamp:
- Oct 20, 2013, 5:24:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/rpcimpl.c
r14192 r14209 254 254 } 255 255 256 static int 257 compareTorrentByQueuePosition (const void * va, const void * vb) 258 { 259 const tr_torrent * a = * (const tr_torrent **) va; 260 const tr_torrent * b = * (const tr_torrent **) vb; 261 262 return a->queuePosition - b->queuePosition; 263 } 264 256 265 static const char* 257 266 torrentStart (tr_session * session, … … 267 276 268 277 torrents = getTorrents (session, args_in, &torrentCount); 278 qsort (torrents, torrentCount, sizeof (tr_torrent *), compareTorrentByQueuePosition); 269 279 for (i=0; i<torrentCount; ++i) 270 280 { … … 294 304 295 305 torrents = getTorrents (session, args_in, &torrentCount); 306 qsort (torrents, torrentCount, sizeof (tr_torrent *), compareTorrentByQueuePosition); 296 307 for (i=0; i<torrentCount; ++i) 297 308 {
Note: See TracChangeset
for help on using the changeset viewer.