Compiler warnings

This commit is contained in:
GreYFoXGTi 2011-02-08 18:58:36 +02:00
parent c735384b52
commit 09068d91a4
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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)