mirror of
https://github.com/transmission/transmission
synced 2025-03-03 10:15:45 +00:00
(trunk, libT) #5169 fix FTBFS in torrentStart()
This commit is contained in:
parent
6429093cd0
commit
e1c338b6c3
2 changed files with 6 additions and 6 deletions
|
@ -488,7 +488,7 @@ tr_torrentCheckSeedLimit (tr_torrent * tor)
|
|||
/* if we're seeding and reach our seed ratio limit, stop the torrent */
|
||||
if (tr_torrentIsSeedRatioDone (tor))
|
||||
{
|
||||
tr_torinf (tor, "Seed ratio reached; pausing torrent");
|
||||
tr_torinf (tor, "%s", "Seed ratio reached; pausing torrent");
|
||||
|
||||
tor->isStopping = true;
|
||||
|
||||
|
@ -499,7 +499,7 @@ tr_torrentCheckSeedLimit (tr_torrent * tor)
|
|||
/* if we're seeding and reach our inactiviy limit, stop the torrent */
|
||||
else if (tr_torrentIsSeedIdleLimitDone (tor))
|
||||
{
|
||||
tr_torinf (tor, "Seeding idle limit reached; pausing torrent");
|
||||
tr_torinf (tor, "%s", "Seeding idle limit reached; pausing torrent");
|
||||
|
||||
tor->isStopping = true;
|
||||
tor->finishedSeedingByIdle = true;
|
||||
|
@ -1708,7 +1708,7 @@ torrentStart (tr_torrent * tor, bool bypass_queue)
|
|||
|
||||
/* allow finished torrents to be resumed */
|
||||
if (tr_torrentIsSeedRatioDone (tor)) {
|
||||
tr_torinf (tor, _("Restarted manually -- disabling its seed ratio"));
|
||||
tr_torinf (tor, "%s", _("Restarted manually -- disabling its seed ratio"));
|
||||
tr_torrentSetRatioMode (tor, TR_RATIOLIMIT_UNLIMITED);
|
||||
}
|
||||
|
||||
|
@ -1810,7 +1810,7 @@ static void
|
|||
stopTorrent (void * vtor)
|
||||
{
|
||||
tr_torrent * tor = vtor;
|
||||
tr_torinf (tor, "Pausing");
|
||||
tr_torinf (tor, "%s", "Pausing");
|
||||
|
||||
if (tr_torrentLock (tor))
|
||||
{
|
||||
|
|
|
@ -540,10 +540,10 @@ callback (void *ignore UNUSED, int event,
|
|||
tr_torrent * tor = tr_torrentFindFromHash (session, info_hash);
|
||||
if (tor) {
|
||||
if (event == DHT_EVENT_SEARCH_DONE) {
|
||||
tr_torinf (tor, "IPv4 DHT announce done");
|
||||
tr_torinf (tor, "%s", "IPv4 DHT announce done");
|
||||
tor->dhtAnnounceInProgress = 0;
|
||||
} else {
|
||||
tr_torinf (tor, "IPv6 DHT announce done");
|
||||
tr_torinf (tor, "%s", "IPv6 DHT announce done");
|
||||
tor->dhtAnnounce6InProgress = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue