]> granicus.if.org Git - apache/commitdiff
cast ap_snprintf() argument to the type expected by the format string
authorJeff Trawick <trawick@apache.org>
Sat, 10 Jun 2000 18:51:24 +0000 (18:51 +0000)
committerJeff Trawick <trawick@apache.org>
Sat, 10 Jun 2000 18:51:24 +0000 (18:51 +0000)
(to fix gcc warning on FreeBSD)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85506 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_include.c

index 97bfa4e18041adba83dd71d37fe39b393983bfce..16c1086a07cccb7182c16098e0f96a652a42539e 100644 (file)
@@ -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++) {