face: minor code cleanups
Change-Id: I154d2ad4dfd9e12e1fa9756f74884286b31298e4
diff --git a/daemon/face/tcp-channel.cpp b/daemon/face/tcp-channel.cpp
index 38fcd05..fbfd17d 100644
--- a/daemon/face/tcp-channel.cpp
+++ b/daemon/face/tcp-channel.cpp
@@ -33,10 +33,10 @@
namespace nfd::face {
-NFD_LOG_INIT(TcpChannel);
-
namespace ip = boost::asio::ip;
+NFD_LOG_INIT(TcpChannel);
+
TcpChannel::TcpChannel(const tcp::Endpoint& localEndpoint, bool wantCongestionMarking,
DetermineFaceScopeFromAddress determineFaceScope)
: m_localEndpoint(localEndpoint)
@@ -59,7 +59,7 @@
}
m_acceptor.open(m_localEndpoint.protocol());
- m_acceptor.set_option(ip::tcp::acceptor::reuse_address(true));
+ m_acceptor.set_option(boost::asio::socket_base::reuse_address(true));
if (m_localEndpoint.address().is_v6()) {
m_acceptor.set_option(ip::v6_only(true));
}