From 09068d91a4716dac469f7414c286254540c0e7bd Mon Sep 17 00:00:00 2001 From: GreYFoXGTi Date: Tue, 8 Feb 2011 18:58:36 +0200 Subject: [PATCH] Compiler warnings --- src/banmaster/banmaster.cpp | 2 +- src/engine/server/server.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/banmaster/banmaster.cpp b/src/banmaster/banmaster.cpp index 0243f9c49..ab326b20f 100644 --- a/src/banmaster/banmaster.cpp +++ b/src/banmaster/banmaster.cpp @@ -215,7 +215,7 @@ int main(int argc, const char **argv) // ignore_convention CNetChunk p; while(m_Net.Recv(&p)) { - if(p.m_DataSize >= sizeof(BANMASTER_IPCHECK) && + if(p.m_DataSize >= (int)sizeof(BANMASTER_IPCHECK) && !mem_comp(p.m_pData, BANMASTER_IPCHECK, sizeof(BANMASTER_IPCHECK))) { char *pAddr = (char*)p.m_pData + sizeof(BANMASTER_IPCHECK); diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index f70ed7a14..cff0144bf 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -1100,13 +1100,13 @@ void CServer::PumpNetwork() SendServerInfo(&Packet.m_Address, -1); } - if(Packet.m_DataSize >= sizeof(BANMASTER_IPOK) && + if(Packet.m_DataSize >= (int)sizeof(BANMASTER_IPOK) && mem_comp(Packet.m_pData, BANMASTER_IPOK, sizeof(BANMASTER_IPOK)) == 0 && m_NetServer.BanmasterCheck(&Packet.m_Address) != -1) { } - if(Packet.m_DataSize >= sizeof(BANMASTER_IPBAN) && + if(Packet.m_DataSize >= (int)sizeof(BANMASTER_IPBAN) && mem_comp(Packet.m_pData, BANMASTER_IPBAN, sizeof(BANMASTER_IPBAN)) == 0 && g_Config.m_SvGlobalBantime && m_NetServer.BanmasterCheck(&Packet.m_Address) != -1)