summaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-01-09 13:23:43 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-01-09 13:23:43 +0100
commit16074a7c2c8197a061281a6880ddbc3967d8ea0c (patch)
treebd0cc650944aaeb38e87d43b94e43c1ab94bb2c7 /src/net
parent562b403a66a6a96d883620b27455564d50e3d49b (diff)
downloadmanaserv-16074a7c2c8197a061281a6880ddbc3967d8ea0c.tar.gz
manaserv-16074a7c2c8197a061281a6880ddbc3967d8ea0c.tar.xz
manaserv-16074a7c2c8197a061281a6880ddbc3967d8ea0c.zip
Replaced 'unsigned int' with 'unsigned'
Same thing, but shorter.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/connectionhandler.cpp2
-rw-r--r--src/net/connectionhandler.h2
-rw-r--r--src/net/messageout.cpp4
-rw-r--r--src/net/messageout.h6
-rw-r--r--src/net/netcomputer.cpp2
-rw-r--r--src/net/netcomputer.h2
6 files changed, 9 insertions, 9 deletions
diff --git a/src/net/connectionhandler.cpp b/src/net/connectionhandler.cpp
index 5aaf90e..d116aa9 100644
--- a/src/net/connectionhandler.cpp
+++ b/src/net/connectionhandler.cpp
@@ -162,7 +162,7 @@ void ConnectionHandler::sendToEveryone(const MessageOut &msg)
}
}
-unsigned int ConnectionHandler::getClientCount() const
+unsigned ConnectionHandler::getClientCount() const
{
return clients.size();
}
diff --git a/src/net/connectionhandler.h b/src/net/connectionhandler.h
index 96fc90c..7dde004 100644
--- a/src/net/connectionhandler.h
+++ b/src/net/connectionhandler.h
@@ -79,7 +79,7 @@ class ConnectionHandler
/**
* Return the number of connected clients.
*/
- unsigned int getClientCount() const;
+ unsigned getClientCount() const;
private:
ENetAddress address; /**< Includes the port to listen to. */
diff --git a/src/net/messageout.cpp b/src/net/messageout.cpp
index d39fd23..00bb623 100644
--- a/src/net/messageout.cpp
+++ b/src/net/messageout.cpp
@@ -32,10 +32,10 @@
#include <enet/enet.h>
/** Initial amount of bytes allocated for the messageout data buffer. */
-const unsigned int INITIAL_DATA_CAPACITY = 16;
+const unsigned INITIAL_DATA_CAPACITY = 16;
/** Factor by which the messageout data buffer is increased when too small. */
-const unsigned int CAPACITY_GROW_FACTOR = 2;
+const unsigned CAPACITY_GROW_FACTOR = 2;
static bool debugModeEnabled = false;
diff --git a/src/net/messageout.h b/src/net/messageout.h
index a39e306..af5980f 100644
--- a/src/net/messageout.h
+++ b/src/net/messageout.h
@@ -75,7 +75,7 @@ class MessageOut
/**
* Returns the length of the data.
*/
- unsigned int getLength() const { return mPos; }
+ unsigned getLength() const { return mPos; }
/**
* Sets whether the debug mode is enabled. In debug mode, the internal
@@ -96,8 +96,8 @@ class MessageOut
void writeValueType(ManaServ::ValueType type);
char *mData; /**< Data building up. */
- unsigned int mPos; /**< Position in the data. */
- unsigned int mDataSize; /**< Allocated datasize. */
+ unsigned mPos; /**< Position in the data. */
+ unsigned mDataSize; /**< Allocated datasize. */
bool mDebugMode; /**< Include debugging information. */
/**
diff --git a/src/net/netcomputer.cpp b/src/net/netcomputer.cpp
index c4af342..8834f4a 100644
--- a/src/net/netcomputer.cpp
+++ b/src/net/netcomputer.cpp
@@ -57,7 +57,7 @@ void NetComputer::disconnect(const MessageOut &msg)
}
void NetComputer::send(const MessageOut &msg, bool reliable,
- unsigned int channel)
+ unsigned channel)
{
LOG_DEBUG("Sending message " << msg << " to " << *this);
diff --git a/src/net/netcomputer.h b/src/net/netcomputer.h
index ee5d2cd..0984034 100644
--- a/src/net/netcomputer.h
+++ b/src/net/netcomputer.h
@@ -68,7 +68,7 @@ class NetComputer
* be sent.
*/
void send(const MessageOut &msg, bool reliable = true,
- unsigned int channel = 0);
+ unsigned channel = 0);
/**
* Returns IP address of computer in 32bit int form