1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

Rename snake_case functions in openrct2/src folder

Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
This commit is contained in:
Hielke Morsink
2023-01-17 13:24:51 +01:00
committed by GitHub
parent bf5f7e8e71
commit 6b7dc8fcdb
227 changed files with 1040 additions and 1040 deletions

View File

@@ -87,11 +87,11 @@ public:
{
if (!_isInitialised)
{
log_verbose("WSAStartup()");
LOG_VERBOSE("WSAStartup()");
WSADATA wsa_data;
if (WSAStartup(MAKEWORD(2, 2), &wsa_data) != 0)
{
log_error("Unable to initialise winsock.");
LOG_ERROR("Unable to initialise winsock.");
return false;
}
_isInitialised = true;
@@ -103,7 +103,7 @@ public:
{
if (_isInitialised)
{
log_verbose("WSACleanup()");
LOG_VERBOSE("WSACleanup()");
WSACleanup();
_isInitialised = false;
}
@@ -225,8 +225,8 @@ private:
int errorcode = getaddrinfo(address.empty() ? nullptr : address.c_str(), serviceName.c_str(), &hints, &result);
if (errorcode != 0)
{
log_error("Resolving address failed: Code %d.", errorcode);
log_error("Resolution error message: %s.", gai_strerror(errorcode));
LOG_ERROR("Resolving address failed: Code %d.", errorcode);
LOG_ERROR("Resolution error message: %s.", gai_strerror(errorcode));
return false;
}
@@ -321,12 +321,12 @@ public:
// Turn off IPV6_V6ONLY so we can accept both v4 and v6 connections
if (!SetOption(_socket, IPPROTO_IPV6, IPV6_V6ONLY, false))
{
log_verbose("setsockopt(socket, IPV6_V6ONLY) failed: %d", LAST_SOCKET_ERROR());
LOG_VERBOSE("setsockopt(socket, IPV6_V6ONLY) failed: %d", LAST_SOCKET_ERROR());
}
if (!SetOption(_socket, SOL_SOCKET, SO_REUSEADDR, true))
{
log_verbose("setsockopt(socket, SO_REUSEADDR) failed: %d", LAST_SOCKET_ERROR());
LOG_VERBOSE("setsockopt(socket, SO_REUSEADDR) failed: %d", LAST_SOCKET_ERROR());
}
try
@@ -374,7 +374,7 @@ public:
{
if (LAST_SOCKET_ERROR() != EWOULDBLOCK)
{
log_error("Failed to accept client.");
LOG_ERROR("Failed to accept client.");
}
}
else
@@ -382,7 +382,7 @@ public:
if (!SetNonBlocking(socket, true))
{
closesocket(socket);
log_error("Failed to set non-blocking mode.");
LOG_ERROR("Failed to set non-blocking mode.");
}
else
{
@@ -826,18 +826,18 @@ private:
// Enable send and receiving of broadcast messages
if (!SetOption(sock, SOL_SOCKET, SO_BROADCAST, true))
{
log_verbose("setsockopt(socket, SO_BROADCAST) failed: %d", LAST_SOCKET_ERROR());
LOG_VERBOSE("setsockopt(socket, SO_BROADCAST) failed: %d", LAST_SOCKET_ERROR());
}
// Turn off IPV6_V6ONLY so we can accept both v4 and v6 connections
if (!SetOption(sock, IPPROTO_IPV6, IPV6_V6ONLY, false))
{
log_verbose("setsockopt(socket, IPV6_V6ONLY) failed: %d", LAST_SOCKET_ERROR());
LOG_VERBOSE("setsockopt(socket, IPV6_V6ONLY) failed: %d", LAST_SOCKET_ERROR());
}
if (!SetOption(sock, SOL_SOCKET, SO_REUSEADDR, true))
{
log_verbose("setsockopt(socket, SO_REUSEADDR) failed: %d", LAST_SOCKET_ERROR());
LOG_VERBOSE("setsockopt(socket, SO_REUSEADDR) failed: %d", LAST_SOCKET_ERROR());
}
if (!SetNonBlocking(sock, true))