]> granicus.if.org Git - transmission/commitdiff
r5987 tweak: silence a couple of console debugging messages that snuck into the commit
authorCharles Kerr <charles@transmissionbt.com>
Sun, 1 Jun 2008 01:55:05 +0000 (01:55 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Sun, 1 Jun 2008 01:55:05 +0000 (01:55 +0000)
libtransmission/bencode.c
libtransmission/transmission.h

index be2bfb228e68915c9ae176b55ed17eb49b2bff13..44edf20c67f41804f1e76e8ca9f3c8565e66bcce 100644 (file)
@@ -662,12 +662,8 @@ tr_bencDictRemove( tr_benc * dict, const char * key )
     if( i >= 0 )
     {
         const int n = dict->val.l.count;
-fprintf( stderr, "i is %d... count is %d\n", i, dict->val.l.count );
-fprintf( stderr, "moving %d items from pos %d to %d\n", dict->val.l.count-(i+2), i+2, i );
-#if 0
         tr_bencFree( &dict->val.l.vals[i] );
         tr_bencFree( &dict->val.l.vals[i+1] );
-#endif
         if( i + 2 < n )
         {
             dict->val.l.vals[i]   = dict->val.l.vals[n-2];
index a771ab5623a8d84d4da736287b5a8e71dedace86..49236653d47710292ad465fa2fa78784000b4c7c 100644 (file)
@@ -817,14 +817,14 @@ tr_tracker_info;
 /**
  * @brief Modify a torrent's tracker list.
  *
- * This updates the torrent in-memory and also the metainfo file
- * stored in the torrent folder in tr_sessionGetConfigDir().
+ * This updates both the `torrent' object's tracker list
+ * and the metainfo file in tr_sessionGetConfigDir()'s torrent subdirectory.
  *
- * @param torrent The torrent whose tracker list is to be modified.
+ * @param torrent The torrent whose tracker list is to be modified
  * @param trackers An array of trackers, sorted by tier from first to last.
  *                 NOTE: only the `tier' and `announce' fields are used.
  *                 libtransmission derives `scrape' from `announce'.
- * @param trackerCount size of the `trackers' array.
+ * @param trackerCount size of the `trackers' array
  */
 void tr_torrentSetAnnounceList( tr_torrent             * torrent,
                                 const tr_tracker_info  * trackers,