(trunk libT) silence minor "unused function argument" compiler warning

This commit is contained in:
Jordan Lee 2011-02-07 23:09:36 +00:00
parent 61d999dfdd
commit 2b905bdbcc
3 changed files with 5 additions and 6 deletions

View 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( );

View 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 );

View 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 )
{