mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Compiler warnings
This commit is contained in:
parent
c735384b52
commit
09068d91a4
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue