]> granicus.if.org Git - transmission/commitdiff
(trunk libT) silence minor "unused function argument" compiler warning
authorJordan Lee <jordan@transmissionbt.com>
Mon, 7 Feb 2011 23:09:36 +0000 (23:09 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Mon, 7 Feb 2011 23:09:36 +0000 (23:09 +0000)
libtransmission/announcer.c
libtransmission/announcer.h
libtransmission/torrent.c

index 6dc8dd52b6ebe55e2910ae0e9ae58edb3a371631..ef4afe8da7a6db284f998e43aab022f1ca597fc4 100644 (file)
@@ -698,12 +698,12 @@ addTorrentToTier( tr_torrent_tiers  * tiers,
 }
 
 tr_torrent_tiers *
-tr_announcerAddTorrent( tr_announcer * announcer, tr_torrent * tor,
-                        tr_tracker_callback * callback, void * callbackData )
+tr_announcerAddTorrent( tr_torrent           * tor,
+                        tr_tracker_callback  * callback,
+                        void                 * callbackData )
 {
     tr_torrent_tiers * tiers;
 
-    assert( announcer != NULL );
     assert( tr_isTorrent( tor ) );
 
     tiers = tiersNew( );
index 54cc052e50095c34b46cfacf70b62333e300da8b..10862b4f6b9fe5f1f9cdccc5b35fcdeede9c1ea7 100644 (file)
@@ -72,8 +72,7 @@ void tr_announcerClose( tr_session * );
 ***  For torrent customers
 **/
 
-struct tr_torrent_tiers * tr_announcerAddTorrent( struct tr_announcer *,
-                                                  tr_torrent          * torrent,
+struct tr_torrent_tiers * tr_announcerAddTorrent( tr_torrent          * torrent,
                                                   tr_tracker_callback * cb,
                                                   void                * cbdata );
 
index e3adb0efb751b9a74964c908469851e1768a23d2..b6032531dc9c8dda333cc4909555bc928b61aba8 100644 (file)
@@ -894,7 +894,7 @@ torrentInit( tr_torrent * tor, const tr_ctor * ctor )
         }
     }
 
-    tor->tiers = tr_announcerAddTorrent( tor->session->announcer, tor, onTrackerResponse, NULL );
+    tor->tiers = tr_announcerAddTorrent( tor, onTrackerResponse, NULL );
 
     if( isNewTorrent )
     {