Skip to content

Commit

Permalink
fix build on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Mar 2, 2024
1 parent 862e3db commit 8f7a95b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ARRCON/ARRCON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ int main_impl(const int argc, char** argv)
std::string str;
std::getline(std::cin, str);

// check for buffered data
// check for data remaining in the socket's buffer from previous commands
if (const auto& buffer_size{ client.buffer_size() }; buffer_size > 0) {
std::clog << MessageHeader(LogLevel::Warning) << "The buffer contains " << buffer_size << " unexpected bytes! Dumping the buffer to STDOUT." << std::endl;

Expand Down
2 changes: 1 addition & 1 deletion ARRCON/net/rcon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ namespace net {
buffer flush()
{
const auto bytes{ socket.available() };
if (bytes == 0) return;
if (bytes == 0) return {};

buffer p{ bytes, 0, std::allocator<uint8_t>() };
boost::asio::read(socket, boost::asio::buffer(p));
Expand Down

0 comments on commit 8f7a95b

Please sign in to comment.