diff --git a/src/kademlia/dht_tracker.cpp b/src/kademlia/dht_tracker.cpp index a947f85a2..8eef76570 100644 --- a/src/kademlia/dht_tracker.cpp +++ b/src/kademlia/dht_tracker.cpp @@ -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) diff --git a/src/kademlia/node.cpp b/src/kademlia/node.cpp index 02f7bc966..56f9278fc 100644 --- a/src/kademlia/node.cpp +++ b/src/kademlia/node.cpp @@ -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)