fixed link error with incoming_error

This commit is contained in:
Arvid Norberg 2009-09-25 16:32:02 +00:00
parent fbccefb70b
commit 6eefa02c56
2 changed files with 4 additions and 4 deletions

View File

@ -111,6 +111,8 @@ namespace
namespace libtorrent { namespace dht
{
void incoming_error(entry& e, char const* msg);
#ifdef TORRENT_DHT_VERBOSE_LOGGING
int g_az_message_input = 0;
int g_ut_message_input = 0;
@ -519,8 +521,6 @@ namespace libtorrent { namespace dht
TORRENT_ASSERT(bytes_transferred > 0);
extern void incoming_error(entry& e, char const* msg);
lazy_entry e;
int ret = lazy_bdecode(buf, buf + bytes_transferred, e);
if (ret != 0)

View File

@ -57,6 +57,8 @@ using boost::bind;
namespace libtorrent { namespace dht
{
void incoming_error(entry& e, char const* msg);
using detail::write_endpoint;
#ifdef _MSC_VER
@ -240,8 +242,6 @@ void node_impl::unreachable(udp::endpoint const& ep)
void node_impl::incoming(msg const& m)
{
extern void incoming_error(entry& e, char const* msg);
// is this a reply?
lazy_entry const* y_ent = m.message.dict_find_string("y");
if (!y_ent || y_ent->string_length() == 0)