From: eihrul Date: Mon, 1 Feb 2010 06:38:02 +0000 (+0000) Subject: unsigned long vs. size_t printf format warning fix X-Git-Tag: xonotic-v0.1.0preview~729 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=063c4e40d2f11d4708b28cabb9bafe5e413b50d5;p=xonotic%2Fdarkplaces.git unsigned long vs. size_t printf format warning fix git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9914 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=56ff6b9beaa04ddfb6a92ee7a0aeb67f97aebef4 --- diff --git a/csprogs.c b/csprogs.c index bb43a0e4..f8e47a65 100644 --- a/csprogs.c +++ b/csprogs.c @@ -810,7 +810,7 @@ qboolean MakeDownloadPacket(const char *filename, unsigned char *data, size_t le if(cnt == 0) { MSG_WriteByte(buf, svc_stufftext); - MSG_WriteString(buf, va("\ncl_downloadbegin %lu %s\n", len, filename)); + MSG_WriteString(buf, va("\ncl_downloadbegin %lu %s\n", (unsigned long)len, filename)); return true; } else if(cnt >= 1 && cnt <= npackets) @@ -830,7 +830,7 @@ qboolean MakeDownloadPacket(const char *filename, unsigned char *data, size_t le else if(cnt == npackets + 1) { MSG_WriteByte(buf, svc_stufftext); - MSG_WriteString(buf, va("\ncl_downloadfinished %lu %d\n", len, crc)); + MSG_WriteString(buf, va("\ncl_downloadfinished %lu %d\n", (unsigned long)len, crc)); return true; } return false;