From e26706be5c0c16b2086da3e123c556fbd13eddf2 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Sun, 25 Feb 2001 00:38:17 +0000 Subject: [PATCH] use the right fmt string for finfo.size Submitted by: Greg Stein and gcc on FreeBSD git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88309 13f79535-47bb-0310-9956-ffa450edef68 --- modules/cache/mod_file_cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cache/mod_file_cache.c b/modules/cache/mod_file_cache.c index fff8011d1c..3e4f7a01df 100644 --- a/modules/cache/mod_file_cache.c +++ b/modules/cache/mod_file_cache.c @@ -219,7 +219,7 @@ static const char *cachefile(cmd_parms *cmd, void *dummy, const char *filename) tmp.file = fd; tmp.filename = apr_pstrdup(cmd->pool, filename); apr_rfc822_date(tmp.mtimestr, tmp.finfo.mtime); - apr_snprintf(tmp.sizestr, sizeof tmp.sizestr, "%lu", tmp.finfo.size); + apr_snprintf(tmp.sizestr, sizeof tmp.sizestr, "%" APR_OFF_T_FMT, tmp.finfo.size); sconf = ap_get_module_config(cmd->server->module_config, &file_cache_module); new_file = apr_array_push(sconf->files); *new_file = tmp; @@ -277,7 +277,7 @@ static const char *mmapfile(cmd_parms *cmd, void *dummy, const char *filename) apr_file_close(fd); tmp.filename = fspec; apr_rfc822_date(tmp.mtimestr, tmp.finfo.mtime); - apr_snprintf(tmp.sizestr, sizeof tmp.sizestr, "%lu", tmp.finfo.size); + apr_snprintf(tmp.sizestr, sizeof tmp.sizestr, "%" APR_OFF_T_FMT, tmp.finfo.size); sconf = ap_get_module_config(cmd->server->module_config, &file_cache_module); new_file = apr_array_push(sconf->files); *new_file = tmp; -- 2.50.1