From 924ef1724223fcfbe04dfd66f8493de736ff17d4 Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Tue, 14 Jul 2009 21:23:19 +0000 Subject: [PATCH] Fix bug #713: Can't compile. git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7848 4a71c877-e1ca-e34f-864e-861f7616d084 --- lib/netplay/netplay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/netplay/netplay.c b/lib/netplay/netplay.c index 060371953..29cff2aae 100644 --- a/lib/netplay/netplay.c +++ b/lib/netplay/netplay.c @@ -1706,14 +1706,14 @@ static bool NETrecvGAMESTRUCT(GAMESTRUCT* game) result = readNoInt(tcp_socket, buf+i, sizeof(buf)-i); 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; } i += result; } 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;