[mapserver-commits] r12974 - trunk/mapserver/mapcache/cgi
svn at osgeo.org
svn at osgeo.org
Thu Jan 5 08:20:56 EST 2012
Author: tbonfort
Date: 2012-01-05 05:20:56 -0800 (Thu, 05 Jan 2012)
New Revision: 12974
Modified:
trunk/mapserver/mapcache/cgi/mapcache.c
Log:
fix printf format warnings
Modified: trunk/mapserver/mapcache/cgi/mapcache.c
===================================================================
--- trunk/mapserver/mapcache/cgi/mapcache.c 2012-01-05 12:20:22 UTC (rev 12973)
+++ trunk/mapserver/mapcache/cgi/mapcache.c 2012-01-05 13:20:56 UTC (rev 12974)
@@ -108,7 +108,7 @@
static void fcgi_write_response(mapcache_context_fcgi *ctx, mapcache_http_response *response) {
if(response->code != 200) {
- printf("Status: %d %s\r\n",response->code, err_msg(response->code));
+ printf("Status: %ld %s\r\n",response->code, err_msg(response->code));
}
if(response->headers && !apr_is_empty_table(response->headers)) {
const apr_array_header_t *elts = apr_table_elts(response->headers);
@@ -138,7 +138,7 @@
printf("Last-Modified: %s\r\n", datestr);
}
if(response->data) {
- printf("Content-Length: %d\r\n\r\n", response->data->size);
+ printf("Content-Length: %zd\r\n\r\n", response->data->size);
fwrite((char*)response->data->buf, response->data->size,1,stdout);
}
}
More information about the mapserver-commits
mailing list