Changeset 2317


Ignore:
Timestamp:
Jul 10, 2007, 3:23:07 AM (15 years ago)
Author:
charles
Message:

minor cleanups of last checkin

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/torrent-inspector.c

    r2316 r2317  
    11871187    gtk_tree_model_get( GTK_TREE_MODEL(store), iter, FC_INDEX, &index, -1  );
    11881188    if (index >= 0)
    1189       tr_torrentSetFileDL( tor, index, !enabled );
     1189      tr_torrentSetFileDL( tor, index, enabled );
    11901190    gtk_tree_store_set( store, iter, FC_ENABLED, enabled, -1 );
    11911191
  • trunk/libtransmission/fastresume.c

    r2316 r2317  
    6363/* dnd and priority
    6464 * char * number of files: l,n,h for low, normal, high priority
    65  * uint8_t * number of files: nonzero if dnd flag is set
     65 * char * number of files: t,f for DND flags
    6666 */
    6767#define FR_ID_PRIORITY          0x06
     
    196196        /* dnd flags */
    197197        for( i=0; i<n; ++i )
    198             *walk++ = tor->info.files[i].dnd ? '\1' : '\0';
     198            *walk++ = tor->info.files[i].dnd ? 't' : 'f';
    199199
    200200        /* write it */
     
    260260    /* set the dnd flags */
    261261    for( i=0; i<n; ++i )
    262         tor->info.files[i].dnd = *walk++ != 0;
     262        tor->info.files[i].dnd = *walk++ == 't';
    263263
    264264    free( buf );
  • trunk/libtransmission/torrent.c

    r2316 r2317  
    974974
    975975            /* close the tracker */
    976 fprintf(stderr,"sending a 'stopped' message to the tracker...\n");
    977976            tr_trackerStopped( tor->tracker );
    978977            tr_trackerPulse( tor->tracker, &peerCount, &peerCompact );
Note: See TracChangeset for help on using the changeset viewer.