summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-19 20:32:10 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-19 20:32:10 +0300
commitb26febf03fdec534a839f5007adb184a38605fcc (patch)
tree5956faa81c36ff42eeb767d092a7995c3329816d
parentfd0b6681b07df44f34d97b8346bf4ff0cc667a98 (diff)
downloadplus-b26febf03fdec534a839f5007adb184a38605fcc.tar.gz
plus-b26febf03fdec534a839f5007adb184a38605fcc.tar.bz2
plus-b26febf03fdec534a839f5007adb184a38605fcc.tar.xz
plus-b26febf03fdec534a839f5007adb184a38605fcc.zip
Reorder variables in ipc.
-rw-r--r--src/net/ipc.cpp6
-rw-r--r--src/net/ipc.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/net/ipc.cpp b/src/net/ipc.cpp
index 0c6b36a3b..30b1afdea 100644
--- a/src/net/ipc.cpp
+++ b/src/net/ipc.cpp
@@ -37,11 +37,11 @@
IPC *ipc = nullptr;
IPC::IPC() :
- mListen(false),
mNumReqs(0),
- mPort(44007),
mSocket(nullptr),
- mThread(nullptr)
+ mThread(nullptr),
+ mPort(44007U),
+ mListen(false)
{
}
diff --git a/src/net/ipc.h b/src/net/ipc.h
index 5e3ecdd1a..6d7f88ecc 100644
--- a/src/net/ipc.h
+++ b/src/net/ipc.h
@@ -55,11 +55,11 @@ private:
void setPort(const unsigned short port)
{ mPort = port; }
- bool mListen;
unsigned int mNumReqs;
- unsigned short mPort;
TcpNet::Socket mSocket;
SDL_Thread *mThread;
+ unsigned short mPort;
+ bool mListen;
};
extern IPC *ipc;