summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-25 20:17:57 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-25 20:17:57 +0300
commit30f64ba7f1f7a1d76f2dbddc05fe1d123de9c86d (patch)
treeaa1b867bf12df5e61e780d83d5c5ab8a56956edc /src/net
parentd43d59612ae6cc56a7ec59f83d344a369ff924ee (diff)
downloadmv-30f64ba7f1f7a1d76f2dbddc05fe1d123de9c86d.tar.gz
mv-30f64ba7f1f7a1d76f2dbddc05fe1d123de9c86d.tar.bz2
mv-30f64ba7f1f7a1d76f2dbddc05fe1d123de9c86d.tar.xz
mv-30f64ba7f1f7a1d76f2dbddc05fe1d123de9c86d.zip
Fix code style.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/inventoryhandler.cpp2
-rw-r--r--src/net/eathena/protocolout.h2
-rw-r--r--src/net/eathena/updateprotocol.cpp2
-rw-r--r--src/net/eathena/updateprotocol.h2
-rw-r--r--src/net/messageout.h2
-rw-r--r--src/net/tmwa/updateprotocol.cpp2
6 files changed, 5 insertions, 7 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index b832c167e..1b781c3be 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -129,7 +129,7 @@ void InventoryHandler::moveItem2(const int source,
const int amount,
const int destination) const
{
- int16_t packet = 0;
+ int packet = 0;
int offset = INVENTORY_OFFSET;
if (source == InventoryType::INVENTORY)
{
diff --git a/src/net/eathena/protocolout.h b/src/net/eathena/protocolout.h
index 571edfccf..502beede5 100644
--- a/src/net/eathena/protocolout.h
+++ b/src/net/eathena/protocolout.h
@@ -26,7 +26,7 @@
namespace EAthena
{
#include "net/eathena/packetsout.inc"
-} // namespace Eathena
+} // namespace EAthena
#undef packet
#undef packet2
diff --git a/src/net/eathena/updateprotocol.cpp b/src/net/eathena/updateprotocol.cpp
index 1d704adfe..34b8713c5 100644
--- a/src/net/eathena/updateprotocol.cpp
+++ b/src/net/eathena/updateprotocol.cpp
@@ -20,8 +20,6 @@
#include "net/eathena/updateprotocol.h"
-#include "logger.h"
-
#include "net/eathena/network.h"
#include "net/eathena/protocolout.h"
diff --git a/src/net/eathena/updateprotocol.h b/src/net/eathena/updateprotocol.h
index e2d4e585f..d60af6985 100644
--- a/src/net/eathena/updateprotocol.h
+++ b/src/net/eathena/updateprotocol.h
@@ -24,6 +24,6 @@
namespace EAthena
{
void updateProtocol();
-} // namespace Eathena
+} // namespace EAthena
#endif // NET_EATHENA_UPDATEPROTOCOL_H
diff --git a/src/net/messageout.h b/src/net/messageout.h
index fb48ddd6e..39b826dfe 100644
--- a/src/net/messageout.h
+++ b/src/net/messageout.h
@@ -30,7 +30,7 @@
#include "localconsts.h"
#define createOutPacket(name) MessageOut outMsg(name); \
- outMsg.writeInt16(name, #name)
+ outMsg.writeInt16(static_cast<int16_t>(name), #name)
namespace Net
{
diff --git a/src/net/tmwa/updateprotocol.cpp b/src/net/tmwa/updateprotocol.cpp
index 391d01a63..279c2df5a 100644
--- a/src/net/tmwa/updateprotocol.cpp
+++ b/src/net/tmwa/updateprotocol.cpp
@@ -42,4 +42,4 @@ void updateProtocol()
}
}
-} // namesspace TmwAthena
+} // namespace TmwAthena