From 03889098f030471b88b007e03a1c5a5630434521 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Apr 2013 21:29:10 +0300 Subject: Fix code style and other small issues. --- src/net/ea/network.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/ea/network.cpp') diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp index 112e16891..679447a50 100644 --- a/src/net/ea/network.cpp +++ b/src/net/ea/network.cpp @@ -145,7 +145,7 @@ void Network::flush() return; SDL_mutexP(mMutex); - int ret = TcpNet::send(mSocket, mOutBuffer, mOutSize); + const int ret = TcpNet::send(mSocket, mOutBuffer, mOutSize); DEBUGLOG(std::string("Send ").append(toString(mOutSize)).append(" bytes")); if (ret < static_cast(mOutSize)) { @@ -254,7 +254,7 @@ void Network::receive() continue; } - int ret = TcpNet::recv(mSocket, mInBuffer + mInSize, + const int ret = TcpNet::recv(mSocket, mInBuffer + mInSize, BUFFER_SIZE - mInSize); if (!ret) -- cgit v1.2.3-60-g2f50