Fix naming conventions
Lots of code has been checked in that doesn't match the naming
conventions. Lets fix that.
Tested:
Code compiles. Variable/function renames only.
Signed-off-by: Ed Tanous <ed@tanous.net>
Change-Id: I6bd107811d0b724f1fad990016113cdf035b604b
diff --git a/include/obmc_console.hpp b/include/obmc_console.hpp
index 29efbef..06df7fd 100644
--- a/include/obmc_console.hpp
+++ b/include/obmc_console.hpp
@@ -13,7 +13,7 @@
namespace obmc_console
{
-static std::unique_ptr<boost::asio::local::stream_protocol::socket> host_socket;
+static std::unique_ptr<boost::asio::local::stream_protocol::socket> hostSocket;
static std::array<char, 4096> outputBuffer;
static std::string inputBuffer;
@@ -37,7 +37,7 @@
}
doingWrite = true;
- host_socket->async_write_some(
+ hostSocket->async_write_some(
boost::asio::buffer(inputBuffer.data(), inputBuffer.size()),
[](boost::beast::error_code ec, std::size_t bytes_written) {
doingWrite = false;
@@ -63,7 +63,7 @@
inline void doRead()
{
BMCWEB_LOG_DEBUG << "Reading from socket";
- host_socket->async_read_some(
+ hostSocket->async_read_some(
boost::asio::buffer(outputBuffer.data(), outputBuffer.size()),
[](const boost::system::error_code& ec, std::size_t bytesRead) {
BMCWEB_LOG_DEBUG << "read done. Read " << bytesRead << " bytes";
@@ -112,15 +112,15 @@
BMCWEB_LOG_DEBUG << "Connection " << &conn << " opened";
sessions.insert(&conn);
- if (host_socket == nullptr)
+ if (hostSocket == nullptr)
{
const std::string consoleName("\0obmc-console", 13);
boost::asio::local::stream_protocol::endpoint ep(consoleName);
- host_socket = std::make_unique<
+ hostSocket = std::make_unique<
boost::asio::local::stream_protocol::socket>(
- conn.get_io_context());
- host_socket->async_connect(ep, connectHandler);
+ conn.getIoContext());
+ hostSocket->async_connect(ep, connectHandler);
}
})
.onclose([](crow::websocket::Connection& conn,
@@ -128,7 +128,7 @@
sessions.erase(&conn);
if (sessions.empty())
{
- host_socket = nullptr;
+ hostSocket = nullptr;
inputBuffer.clear();
inputBuffer.shrink_to_fit();
}