summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-06-16 21:12:08 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-06-17 16:18:30 +0200
commitf904aef176b7bde38f27cc9b4f23c55dc13d2ce5 (patch)
tree2ea8cfd92faf9786275824cf1a5c5be927283601 /src/network
parenta9774f3e341812d43427b9e0166b0def08202477 (diff)
downloadopenttd-f904aef176b7bde38f27cc9b4f23c55dc13d2ce5.tar.xz
Cleanup: use nullptr instead of 0 or NULL
Diffstat (limited to 'src/network')
-rw-r--r--src/network/core/tcp_connect.cpp2
-rw-r--r--src/network/network_command.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/network/core/tcp_connect.cpp b/src/network/core/tcp_connect.cpp
index f251f0288..c4f5415b0 100644
--- a/src/network/core/tcp_connect.cpp
+++ b/src/network/core/tcp_connect.cpp
@@ -268,7 +268,7 @@ bool TCPConnecter::CheckActivity()
timeval tv;
tv.tv_usec = 0;
tv.tv_sec = 0;
- int n = select(FD_SETSIZE, NULL, &write_fd, NULL, &tv);
+ int n = select(FD_SETSIZE, nullptr, &write_fd, nullptr, &tv);
/* select() failed; hopefully next try it doesn't. */
if (n < 0) {
/* select() normally never fails; so hopefully it works next try! */
diff --git a/src/network/network_command.cpp b/src/network/network_command.cpp
index 1a9849a34..6d03aaaa1 100644
--- a/src/network/network_command.cpp
+++ b/src/network/network_command.cpp
@@ -179,7 +179,7 @@ void NetworkSyncCommandQueue(NetworkClientSocket *cs)
{
for (CommandPacket *p = _local_execution_queue.Peek(); p != nullptr; p = p->next) {
CommandPacket c = *p;
- c.callback = 0;
+ c.callback = nullptr;
cs->outgoing_queue.Append(&c);
}
}