build fixes

This commit is contained in:
Arvid Norberg 2009-12-03 17:44:11 +00:00
parent 1d04c4dcd0
commit ff2063651b
3 changed files with 5 additions and 4 deletions

View File

@ -771,6 +771,7 @@ namespace libtorrent
, std::list<address> const& ip_list
, std::vector<peer_entry>& peers
, int interval
, int min_interval
, int complete
, int incomplete
, address const& external_ip)
@ -778,7 +779,7 @@ namespace libtorrent
std::string s;
s = "TRACKER RESPONSE:\n";
char tmp[200];
snprintf(tmp, 200, "interval: %d\npeers:\n", interval);
snprintf(tmp, 200, "interval: %d\nmin_interval: %d\npeers:\n", interval, min_interval);
s += tmp;
for (std::vector<peer_entry>::const_iterator i = peers.begin();
i != peers.end(); ++i)

View File

@ -408,7 +408,7 @@ namespace libtorrent
{
char const* peers = peers_ent->string_ptr();
int len = peers_ent->string_length();
for (int i = 0; i < len; ++i)
for (int i = 0; i < len; i += 6)
{
if (len - i < 6) break;
@ -442,7 +442,7 @@ namespace libtorrent
{
char const* peers = ipv6_peers->string_ptr();
int len = ipv6_peers->string_length();
for (int i = 0; i < len; ++i)
for (int i = 0; i < len; i += 18)
{
if (len - i < 18) break;

View File

@ -762,7 +762,7 @@ namespace libtorrent
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING || defined TORRENT_ERROR_LOGGING
(*m_ses.m_logger) << "fastresume data for "
<< torrent_file().name() << " rejected: "
<< ev.message() << "\n";
<< error_code(ev, get_libtorrent_category()).message() << "\n";
#endif
std::vector<char>().swap(m_resume_data);
lazy_entry().swap(m_resume_entry);