summaryrefslogtreecommitdiff
path: root/src/network/core/tcp_listen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/core/tcp_listen.h')
-rw-r--r--src/network/core/tcp_listen.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/core/tcp_listen.h b/src/network/core/tcp_listen.h
index 53a3d57cc..c11727ba7 100644
--- a/src/network/core/tcp_listen.h
+++ b/src/network/core/tcp_listen.h
@@ -64,7 +64,7 @@ public:
DEBUG(net, 1, "[%s] Banned ip tried to join (%s), refused", Tsocket::GetName(), entry.c_str());
if (p.TransferOut<int>(send, s, 0) < 0) {
- DEBUG(net, 0, "send failed with error %d", GET_LAST_ERROR());
+ DEBUG(net, 0, "send failed with error %d", NetworkGetLastError());
}
closesocket(s);
break;
@@ -81,7 +81,7 @@ public:
p.PrepareToSend();
if (p.TransferOut<int>(send, s, 0) < 0) {
- DEBUG(net, 0, "send failed with error %d", GET_LAST_ERROR());
+ DEBUG(net, 0, "send failed with error %d", NetworkGetLastError());
}
closesocket(s);