Fix an unused variable and a signed-unsigned comparison

This commit is contained in:
heinrich5991 2019-02-03 02:21:48 +01:00
parent 0b642df946
commit b617c8b0b7
2 changed files with 1 additions and 2 deletions

View file

@ -81,7 +81,6 @@ void BuildPackets()
int ServersLeft = m_NumServers; int ServersLeft = m_NumServers;
m_NumPackets = 0; m_NumPackets = 0;
int PacketIndex = 0; int PacketIndex = 0;
int PacketIndexLegacy = 0;
while(ServersLeft-- && m_NumPackets < MAX_PACKETS) while(ServersLeft-- && m_NumPackets < MAX_PACKETS)
{ {
if(pCurrent->m_Type == SERVERTYPE_NORMAL) if(pCurrent->m_Type == SERVERTYPE_NORMAL)

View file

@ -124,7 +124,7 @@ static int Run()
{ {
if(p.m_ClientID == -1) 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) mem_comp(p.m_pData, SERVERBROWSE_GETINFO, sizeof(SERVERBROWSE_GETINFO)) == 0)
{ {
SendServerInfo(&p.m_Address); SendServerInfo(&p.m_Address);