diff options
author | Rubidium <rubidium@openttd.org> | 2021-06-16 21:12:08 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-06-17 16:18:30 +0200 |
commit | f904aef176b7bde38f27cc9b4f23c55dc13d2ce5 (patch) | |
tree | 2ea8cfd92faf9786275824cf1a5c5be927283601 /src/network/core | |
parent | a9774f3e341812d43427b9e0166b0def08202477 (diff) | |
download | openttd-f904aef176b7bde38f27cc9b4f23c55dc13d2ce5.tar.xz |
Cleanup: use nullptr instead of 0 or NULL
Diffstat (limited to 'src/network/core')
-rw-r--r-- | src/network/core/tcp_connect.cpp | 2 |
1 files changed, 1 insertions, 1 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! */ |