summaryrefslogtreecommitdiff
path: root/src/net/ea/network.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-12 21:29:10 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-12 22:22:59 +0300
commit03889098f030471b88b007e03a1c5a5630434521 (patch)
tree4b60ab4f26e44908bf240254029976eb078fdaa0 /src/net/ea/network.cpp
parentc565936b3ac5b6e1ab0d5ca30963619c7b725bb6 (diff)
downloadmanaverse-03889098f030471b88b007e03a1c5a5630434521.tar.gz
manaverse-03889098f030471b88b007e03a1c5a5630434521.tar.bz2
manaverse-03889098f030471b88b007e03a1c5a5630434521.tar.xz
manaverse-03889098f030471b88b007e03a1c5a5630434521.zip
Fix code style and other small issues.
Diffstat (limited to 'src/net/ea/network.cpp')
-rw-r--r--src/net/ea/network.cpp4
1 files changed, 2 insertions, 2 deletions
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<int>(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)