From: Jordan Lee Date: Mon, 7 Feb 2011 23:09:36 +0000 (+0000) Subject: (trunk libT) silence minor "unused function argument" compiler warning X-Git-Tag: 2.21~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b905bdbcc72307f2d4783162ff92174b03592e4;p=transmission (trunk libT) silence minor "unused function argument" compiler warning --- diff --git a/libtransmission/announcer.c b/libtransmission/announcer.c index 6dc8dd52b..ef4afe8da 100644 --- a/libtransmission/announcer.c +++ b/libtransmission/announcer.c @@ -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( ); diff --git a/libtransmission/announcer.h b/libtransmission/announcer.h index 54cc052e5..10862b4f6 100644 --- a/libtransmission/announcer.h +++ b/libtransmission/announcer.h @@ -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 ); diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index e3adb0efb..b6032531d 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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 ) {