From 9c7a913cdc3416315f55dcb5724c5cea9e08f229 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 16 Jul 2007 23:52:05 +0000 Subject: [PATCH] r2377 cleanup --- libtransmission/torrent.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index c66362e42..858d0e1aa 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -1258,7 +1258,7 @@ tr_torrentSetFileDL( tr_torrent_t * tor, int fileIndex, int doDownload ) { - const tr_file_t * file; + tr_file_t * file; const int dnd = !doDownload; int firstPiece, firstPieceDND; int lastPiece, lastPieceDND; @@ -1267,6 +1267,7 @@ tr_torrentSetFileDL( tr_torrent_t * tor, tr_torrentWriterLock( tor ); file = &tor->info.files[fileIndex]; + file->dnd = dnd; firstPiece = file->firstPiece; lastPiece = file->lastPiece; @@ -1296,7 +1297,7 @@ tr_torrentSetFileDL( tr_torrent_t * tor, { tor->info.pieces[firstPiece].dnd = firstPieceDND; tor->info.pieces[lastPiece].dnd = lastPieceDND; - for( i=firstPiece+1; iinfo.pieces[i].dnd = dnd; }