mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Fix an unused variable and a signed-unsigned comparison
This commit is contained in:
parent
0b642df946
commit
b617c8b0b7
|
@ -81,7 +81,6 @@ void BuildPackets()
|
|||
int ServersLeft = m_NumServers;
|
||||
m_NumPackets = 0;
|
||||
int PacketIndex = 0;
|
||||
int PacketIndexLegacy = 0;
|
||||
while(ServersLeft-- && m_NumPackets < MAX_PACKETS)
|
||||
{
|
||||
if(pCurrent->m_Type == SERVERTYPE_NORMAL)
|
||||
|
|
|
@ -124,7 +124,7 @@ static int Run()
|
|||
{
|
||||
if(p.m_ClientID == -1)
|
||||
{
|
||||
if(p.m_DataSize >= sizeof(SERVERBROWSE_GETINFO) &&
|
||||
if(p.m_DataSize >= (int)sizeof(SERVERBROWSE_GETINFO) &&
|
||||
mem_comp(p.m_pData, SERVERBROWSE_GETINFO, sizeof(SERVERBROWSE_GETINFO)) == 0)
|
||||
{
|
||||
SendServerInfo(&p.m_Address);
|
||||
|
|
Loading…
Reference in a new issue