From: Jeff Trawick Date: Sat, 10 Jun 2000 18:51:24 +0000 (+0000) Subject: cast ap_snprintf() argument to the type expected by the format string X-Git-Tag: APACHE_2_0_ALPHA_5~382 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2bf1b4753cb754ea1b540ac6e6cbc16c4b158e3;p=apache cast ap_snprintf() argument to the type expected by the format string (to fix gcc warning on FreeBSD) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85506 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 97bfa4e180..16c1086a07 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -1196,7 +1196,7 @@ static int handle_fsize(ap_file_t *in, request_rec *r, const char *error, int si #if defined(AP_OFF_T_IS_QUAD) ap_snprintf(tag, sizeof(tag), "%qd", finfo.size); #else - ap_snprintf(tag, sizeof(tag), "%ld", finfo.size); + ap_snprintf(tag, sizeof(tag), "%ld", (long)finfo.size); #endif l = strlen(tag); /* grrr */ for (x = 0; x < l; x++) {