fixed warnings and uninitialized variable
This commit is contained in:
@@ -1471,7 +1471,7 @@ namespace libtorrent
|
|||||||
// ban it.
|
// ban it.
|
||||||
if (m_ses.m_alerts.should_post<peer_ban_alert>())
|
if (m_ses.m_alerts.should_post<peer_ban_alert>())
|
||||||
{
|
{
|
||||||
peer_id pid;
|
peer_id pid(0);
|
||||||
if (p->connection) pid = p->connection->pid();
|
if (p->connection) pid = p->connection->pid();
|
||||||
m_ses.m_alerts.post_alert(peer_ban_alert(
|
m_ses.m_alerts.post_alert(peer_ban_alert(
|
||||||
get_handle(), p->ip(), pid));
|
get_handle(), p->ip(), pid));
|
||||||
@@ -2261,6 +2261,7 @@ namespace libtorrent
|
|||||||
if (!s) return;
|
if (!s) return;
|
||||||
|
|
||||||
bool ret = instantiate_connection(m_ses.m_io_service, m_ses.web_seed_proxy(), *s);
|
bool ret = instantiate_connection(m_ses.m_io_service, m_ses.web_seed_proxy(), *s);
|
||||||
|
(void)ret;
|
||||||
TORRENT_ASSERT(ret);
|
TORRENT_ASSERT(ret);
|
||||||
|
|
||||||
if (m_ses.web_seed_proxy().type == proxy_settings::http
|
if (m_ses.web_seed_proxy().type == proxy_settings::http
|
||||||
@@ -2775,6 +2776,7 @@ namespace libtorrent
|
|||||||
boost::shared_ptr<socket_type> s(new socket_type(m_ses.m_io_service));
|
boost::shared_ptr<socket_type> s(new socket_type(m_ses.m_io_service));
|
||||||
|
|
||||||
bool ret = instantiate_connection(m_ses.m_io_service, m_ses.peer_proxy(), *s);
|
bool ret = instantiate_connection(m_ses.m_io_service, m_ses.peer_proxy(), *s);
|
||||||
|
(void)ret;
|
||||||
TORRENT_ASSERT(ret);
|
TORRENT_ASSERT(ret);
|
||||||
std::pair<int, int> const& out_ports = m_ses.settings().outgoing_ports;
|
std::pair<int, int> const& out_ports = m_ses.settings().outgoing_ports;
|
||||||
error_code ec;
|
error_code ec;
|
||||||
|
Reference in New Issue
Block a user