You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Greg Stein <gs...@lyra.org> on 2001/02/24 01:16:53 UTC

Re: cvs commit: httpd-2.0/modules/cache mod_file_cache.c

On Fri, Feb 23, 2001 at 06:57:36PM -0000, stoddard@apache.org wrote:
>...
>   --- mod_file_cache.c	2001/02/16 04:26:34	1.46
>   +++ mod_file_cache.c	2001/02/23 18:57:36	1.47
>...
>   @@ -216,6 +218,8 @@
>        }
>        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);
>        sconf = ap_get_module_config(cmd->server->module_config, &file_cache_module);
>        new_file = apr_array_push(sconf->files);
>        *new_file = tmp;
>   @@ -272,6 +276,8 @@
>        }
>        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);

Those should be APR_OFF_T_FMT

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/