minor cleanups of last checkin

This commit is contained in:
Charles Kerr 2007-07-10 03:23:07 +00:00
parent ed226a32ac
commit 0c39aa6565
3 changed files with 4 additions and 5 deletions

View File

@ -1186,7 +1186,7 @@ set_files_enabled( GtkTreeStore * store,
gtk_tree_model_get( GTK_TREE_MODEL(store), iter, FC_INDEX, &index, -1 );
if (index >= 0)
tr_torrentSetFileDL( tor, index, !enabled );
tr_torrentSetFileDL( tor, index, enabled );
gtk_tree_store_set( store, iter, FC_ENABLED, enabled, -1 );
if( gtk_tree_model_iter_children( GTK_TREE_MODEL(store), &child, iter ) ) do

View File

@ -62,7 +62,7 @@ typedef uint64_t tr_time_t;
#define FR_ID_PROGRESS 0x05
/* dnd and priority
* char * number of files: l,n,h for low, normal, high priority
* uint8_t * number of files: nonzero if dnd flag is set
* char * number of files: t,f for DND flags
*/
#define FR_ID_PRIORITY 0x06
@ -195,7 +195,7 @@ void fastResumeSave( const tr_torrent_t * tor )
/* dnd flags */
for( i=0; i<n; ++i )
*walk++ = tor->info.files[i].dnd ? '\1' : '\0';
*walk++ = tor->info.files[i].dnd ? 't' : 'f';
/* write it */
assert( walk - buf == 2*n );
@ -259,7 +259,7 @@ fastResumeLoadPriorities( tr_torrent_t * tor,
/* set the dnd flags */
for( i=0; i<n; ++i )
tor->info.files[i].dnd = *walk++ != 0;
tor->info.files[i].dnd = *walk++ == 't';
free( buf );
return TR_OK;

View File

@ -973,7 +973,6 @@ torrentThreadLoop ( void * _tor )
tor->io = NULL;
/* close the tracker */
fprintf(stderr,"sending a 'stopped' message to the tracker...\n");
tr_trackerStopped( tor->tracker );
tr_trackerPulse( tor->tracker, &peerCount, &peerCompact );
tr_trackerClose( tor->tracker );