summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ClientHandle.cpp6
-rw-r--r--src/ClientHandle.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index aa223f5df..f7e18974f 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -2160,12 +2160,12 @@ void cClientHandle::PacketBufferFull(void)
-void cClientHandle::PacketUnknown(unsigned char a_PacketType)
+void cClientHandle::PacketUnknown(UInt32 a_PacketType)
{
- LOGERROR("Unknown packet type 0x%02x from client \"%s\" @ %s", a_PacketType, m_Username.c_str(), m_IPString.c_str());
+ LOGERROR("Unknown packet type 0x%x from client \"%s\" @ %s", a_PacketType, m_Username.c_str(), m_IPString.c_str());
AString Reason;
- Printf(Reason, "Unknown [C->S] PacketType: 0x%02x", a_PacketType);
+ Printf(Reason, "Unknown [C->S] PacketType: 0x%x", a_PacketType);
SendDisconnect(Reason);
Destroy();
}
diff --git a/src/ClientHandle.h b/src/ClientHandle.h
index 4498c15c2..2ff75b28a 100644
--- a/src/ClientHandle.h
+++ b/src/ClientHandle.h
@@ -160,7 +160,7 @@ public:
// Calls that cProtocol descendants use to report state:
void PacketBufferFull(void);
- void PacketUnknown(unsigned char a_PacketType);
+ void PacketUnknown(UInt32 a_PacketType);
void PacketError(unsigned char a_PacketType);
// Calls that cProtocol descendants use for handling packets: