summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-04 11:47:46 +0200
committermadmaxoft <github@xoft.cz>2014-04-04 11:47:46 +0200
commit4be894f0601fcfa182fda045b07b196e5dcd9343 (patch)
treec3864d80195075b0c994f8b1b3e91f06f66bf93f /src/Protocol/Protocol17x.h
parentFixed CreateHexDump's format string. (diff)
downloadcuberite-4be894f0601fcfa182fda045b07b196e5dcd9343.tar
cuberite-4be894f0601fcfa182fda045b07b196e5dcd9343.tar.gz
cuberite-4be894f0601fcfa182fda045b07b196e5dcd9343.tar.bz2
cuberite-4be894f0601fcfa182fda045b07b196e5dcd9343.tar.lz
cuberite-4be894f0601fcfa182fda045b07b196e5dcd9343.tar.xz
cuberite-4be894f0601fcfa182fda045b07b196e5dcd9343.tar.zst
cuberite-4be894f0601fcfa182fda045b07b196e5dcd9343.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol17x.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Protocol17x.h b/src/Protocol/Protocol17x.h
index bb6ee575a..91186b270 100644
--- a/src/Protocol/Protocol17x.h
+++ b/src/Protocol/Protocol17x.h
@@ -196,7 +196,7 @@ protected:
m_Out.WriteVarUTF8String(a_Value);
}
- void WriteBuf(const char * a_Data, int a_Size)
+ void WriteBuf(const char * a_Data, size_t a_Size)
{
m_Out.Write(a_Data, a_Size);
}
@@ -243,7 +243,7 @@ protected:
/** Adds the received (unencrypted) data to m_ReceivedData, parses complete packets */
- void AddReceivedData(const char * a_Data, int a_Size);
+ void AddReceivedData(const char * a_Data, size_t a_Size);
/** Reads and handles the packet. The packet length and type have already been read.
Returns true if the packet was understood, false if it was an unknown packet