Fix bug #713: Can't compile.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7848 4a71c877-e1ca-e34f-864e-861f7616d084
master
Guangcong Luo 2009-07-14 21:23:19 +00:00 committed by Git SVN Gateway
parent 1907b3aa73
commit 924ef17242
1 changed files with 2 additions and 2 deletions

View File

@ -1706,14 +1706,14 @@ static bool NETrecvGAMESTRUCT(GAMESTRUCT* game)
result = readNoInt(tcp_socket, buf+i, sizeof(buf)-i); result = readNoInt(tcp_socket, buf+i, sizeof(buf)-i);
if (result == SOCKET_ERROR || result <= 0) if (result == SOCKET_ERROR || result <= 0)
{ {
debug(LOG_WARNING, "GAMESTRUCT recv failed; received %u bytes out of %lu", i, sizeof(buf)); debug(LOG_WARNING, "GAMESTRUCT recv failed; received %u bytes out of %d", i, (int)sizeof(buf));
return false; return false;
} }
i += result; i += result;
} }
if (i != sizeof(buf)) if (i != sizeof(buf))
{ {
debug(LOG_WARNING, "GAMESTRUCT recv size mismatch; received %u bytes; expecting %lu", i, sizeof(buf)); debug(LOG_WARNING, "GAMESTRUCT recv size mismatch; received %u bytes; expecting %d", i, (int)sizeof(buf));
return false; return false;
} }
return false; return false;