Skip to content

Commit

Permalink
fixed warnings and uninitialized variable
Browse files Browse the repository at this point in the history
git-svn-id: http://libtorrent.svn.sourceforge.net/svnroot/libtorrent/trunk@2615 a83610d8-ad2a-0410-a6ab-fc0612d85776
  • Loading branch information
arvidn committed Aug 19, 2008
1 parent 630944f commit fdc3f8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/torrent.cpp
Expand Up @@ -1471,7 +1471,7 @@ namespace libtorrent
// ban it.
if (m_ses.m_alerts.should_post<peer_ban_alert>())
{
peer_id pid;
peer_id pid(0);
if (p->connection) pid = p->connection->pid();
m_ses.m_alerts.post_alert(peer_ban_alert(
get_handle(), p->ip(), pid));
Expand Down Expand Up @@ -2261,6 +2261,7 @@ namespace libtorrent
if (!s) return;

bool ret = instantiate_connection(m_ses.m_io_service, m_ses.web_seed_proxy(), *s);
(void)ret;
TORRENT_ASSERT(ret);

if (m_ses.web_seed_proxy().type == proxy_settings::http
Expand Down Expand Up @@ -2775,6 +2776,7 @@ namespace libtorrent
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);
(void)ret;
TORRENT_ASSERT(ret);
std::pair<int, int> const& out_ports = m_ses.settings().outgoing_ports;
error_code ec;
Expand Down

0 comments on commit fdc3f8a

Please sign in to comment.