current parsers.c,1.312,1.313
Lee via ijbswa-commits <[email protected]> Sat, 01 Jul 2017 17:14:14 +0000
| Newsgroups | gmane.comp.web.privoxy.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ijbswa/current
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv26304/current
Modified Files:
parsers.c
Log Message:
get rid of another compiler warning on Windows for %llu
i686-w64-mingw32-gcc -c -pipe -O2 -DWINVER=0x501 -mwindows -Wall -Ipcre parsers.c -o parsers.o
parsers.c: In function 'create_content_length_header':
parsers.c:4671:36: warning: unknown conversion type character 'l' in format [-Wformat=]
snprintf(header, buffer_length, "Content-Length: %llu", content_length);
^
parsers.c:4671:36: warning: too many arguments for format [-Wformat-extra-args]
Index: parsers.c
===================================================================
RCS file: /cvsroot/ijbswa/current/parsers.c,v
retrieving revision 1.312
retrieving revision 1.313
diff -C2 -d -r1.312 -r1.313
*** parsers.c 8 Jun 2017 13:13:26 -0000 1.312
--- parsers.c 1 Jul 2017 17:14:12 -0000 1.313
***************
*** 4647,4651 ****
--- 4647,4658 ----
char *header, size_t buffer_length)
{
+ #ifdef _WIN32
+ #if SIZEOF_LONG_LONG < 8
+ #error sizeof(unsigned long long) too small
+ #endif
+ snprintf(header, buffer_length, "Content-Length: %I64u", content_length);
+ #else
snprintf(header, buffer_length, "Content-Length: %llu", content_length);
+ #endif
}
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot