mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
fix compile on linux
fixed some warnings. (gcc seems not to like char variables as array subscript) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3330 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -210,7 +210,7 @@ void *ServerSide::Entry()
|
||||
m_socket.Close();
|
||||
|
||||
// Delete the Thread and close clients sockets
|
||||
for (char i=0; i < m_numplayers ; i++)
|
||||
for (int i=0; i < m_numplayers ; i++)
|
||||
m_client[i].socket.Close();
|
||||
|
||||
break;
|
||||
@ -314,7 +314,7 @@ bool ServerSide::SyncValues(unsigned char socketnb, sf::IPAddress Address)
|
||||
return true;
|
||||
}
|
||||
|
||||
void ServerSide::Write(char socknb, const char *data, size_t size, long *ping)
|
||||
void ServerSide::Write(int socknb, const char *data, size_t size, long *ping)
|
||||
{
|
||||
wxCriticalSectionLocker lock(m_CriticalSection);
|
||||
|
||||
@ -345,7 +345,7 @@ void ServerSide::Write(char socknb, const char *data, size_t size, long *ping)
|
||||
m_client[socknb].socket.Send(data, size);
|
||||
}
|
||||
|
||||
void ServerSide::WriteUDP(char socknb, const char *data, size_t size)
|
||||
void ServerSide::WriteUDP(int socknb, const char *data, size_t size)
|
||||
{
|
||||
wxCriticalSectionLocker lock(m_CriticalSection);
|
||||
|
||||
|
Reference in New Issue
Block a user