Revert "Unused parameter warnings removal"

This reverts commit 5350078543.
This commit is contained in:
Jeff Becker
2016-10-10 08:59:48 -04:00
parent 22250ae552
commit 84ca992e91
16 changed files with 61 additions and 65 deletions

View File

@@ -295,8 +295,8 @@ namespace client
std::placeholders::_1, std::placeholders::_2, socket, buf));
}
void I2PControlService::HandleResponseSent (const boost::system::error_code& ecode, std::size_t /*bytes_transferred*/,
std::shared_ptr<ssl_socket> /*socket*/, std::shared_ptr<I2PControlBuffer> /*buf*/)
void I2PControlService::HandleResponseSent (const boost::system::error_code& ecode, std::size_t bytes_transferred,
std::shared_ptr<ssl_socket> socket, std::shared_ptr<I2PControlBuffer> buf)
{
if (ecode) {
LogPrint (eLogError, "I2PControl: write error: ", ecode.message ());
@@ -453,7 +453,7 @@ namespace client
InsertParam (results, "Shutdown", "");
m_ShutdownTimer.expires_from_now (boost::posix_time::seconds(1)); // 1 second to make sure response has been sent
m_ShutdownTimer.async_wait (
[](const boost::system::error_code&)
[](const boost::system::error_code& ecode)
{
Daemon.running = 0;
});
@@ -467,7 +467,7 @@ namespace client
InsertParam (results, "ShutdownGraceful", "");
m_ShutdownTimer.expires_from_now (boost::posix_time::seconds(timeout + 1)); // + 1 second
m_ShutdownTimer.async_wait (
[](const boost::system::error_code&)
[](const boost::system::error_code& ecode)
{
Daemon.running = 0;
});