summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-01 23:03:23 +0200
committermadmaxoft <github@xoft.cz>2014-05-01 23:03:23 +0200
commite24bdc9328278b676c7acf83fd9f31b430561b98 (patch)
tree6037461b9f07ef09ab8c2ecd6f1347edc386fb2d
parentFixed warnings in ClientHandle. (diff)
downloadcuberite-e24bdc9328278b676c7acf83fd9f31b430561b98.tar
cuberite-e24bdc9328278b676c7acf83fd9f31b430561b98.tar.gz
cuberite-e24bdc9328278b676c7acf83fd9f31b430561b98.tar.bz2
cuberite-e24bdc9328278b676c7acf83fd9f31b430561b98.tar.lz
cuberite-e24bdc9328278b676c7acf83fd9f31b430561b98.tar.xz
cuberite-e24bdc9328278b676c7acf83fd9f31b430561b98.tar.zst
cuberite-e24bdc9328278b676c7acf83fd9f31b430561b98.zip
-rw-r--r--src/ClientHandle.cpp4
-rw-r--r--src/ClientHandle.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 7a4158491..4ed0d682f 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -716,7 +716,7 @@ void cClientHandle::UnregisterPluginChannels(const AStringVector & a_ChannelList
-void cClientHandle::HandleCommandBlockMessage(const char * a_Data, unsigned int a_Length)
+void cClientHandle::HandleCommandBlockMessage(const char * a_Data, size_t a_Length)
{
if (a_Length < 14)
{
@@ -2522,7 +2522,7 @@ void cClientHandle::SendWindowOpen(const cWindow & a_Window)
-void cClientHandle::SendWindowProperty(const cWindow & a_Window, short a_Property, short a_Value)
+void cClientHandle::SendWindowProperty(const cWindow & a_Window, int a_Property, int a_Value)
{
m_Protocol->SendWindowProperty(a_Window, a_Property, a_Value);
}
diff --git a/src/ClientHandle.h b/src/ClientHandle.h
index 9f8d44129..9fd17ac00 100644
--- a/src/ClientHandle.h
+++ b/src/ClientHandle.h
@@ -384,7 +384,7 @@ private:
void UnregisterPluginChannels(const AStringVector & a_ChannelList);
/** Handles the "MC|AdvCdm" plugin message */
- void HandleCommandBlockMessage(const char * a_Data, unsigned int a_Length);
+ void HandleCommandBlockMessage(const char * a_Data, size_t a_Length);
// cSocketThreads::cCallback overrides:
virtual void DataReceived (const char * a_Data, size_t a_Size) override; // Data is received from the client