Changeset 2321
- Timestamp:
- Jul 10, 2007, 3:49:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/fastresume.c
r2320 r2321 259 259 260 260 /* set the dnd flags */ 261 for( i=0; i<n; ++i ) 262 tor->info.files[i].dnd = *walk++ == 't'; 261 for( i=0; i<n; ++i ) { 262 int j; 263 const char ch = *walk++; 264 tr_file_t * file = &tor->info.files[i]; 265 file->dnd = ch == 't'; 266 for( j=file->firstPiece; j<=file->lastPiece; ++j ) 267 tor->info.pieces[j].dnd = file->dnd; 268 } 263 269 264 270 free( buf );
Note: See TracChangeset
for help on using the changeset viewer.