You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by st...@apache.org on 2002/04/02 05:54:38 UTC
cvs commit: httpd-2.0/modules/experimental mod_disk_cache.c
stoddard 02/04/01 19:54:38
Modified: modules/experimental mod_disk_cache.c
Log:
Cleanup some compile warnings.
Revision Changes Path
1.30 +4 -4 httpd-2.0/modules/experimental/mod_disk_cache.c
Index: mod_disk_cache.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_disk_cache.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- mod_disk_cache.c 29 Mar 2002 08:17:21 -0000 1.29
+++ mod_disk_cache.c 2 Apr 2002 03:54:38 -0000 1.30
@@ -80,10 +80,10 @@
char *datafile; /* name of file where the data will go */
char *hdrsfile; /* name of file where the hdrs will go */
char *name;
- int version; /* update count of the file */
+ apr_time_t version; /* update count of the file */
apr_file_t *fd; /* data file */
apr_file_t *hfd; /* headers file */
- apr_off_t file_size; /* File size of the cached data file */
+ apr_off_t file_size; /* File size of the cached data file */
} disk_cache_object_t;
/*
@@ -504,7 +504,7 @@
apr_bucket *e;
disk_cache_object_t *dobj = (disk_cache_object_t*) h->cache_obj->vobj;
- e = apr_bucket_file_create(dobj->fd, 0, dobj->file_size, p,
+ e = apr_bucket_file_create(dobj->fd, 0, (apr_size_t) dobj->file_size, p,
bb->bucket_alloc);
APR_BRIGADE_INSERT_HEAD(bb, e);
e = apr_bucket_eos_create(bb->bucket_alloc);
@@ -769,7 +769,7 @@
AP_INIT_TAKE1("CacheRoot", set_cache_root, NULL, RSRC_CONF,
"The directory to store cache files"),
AP_INIT_TAKE1("CacheSize", set_cache_size, NULL, RSRC_CONF,
- "The maximum disk space used by the cache in Kb"),
+ "The maximum disk space used by the cache in KB"),
AP_INIT_TAKE1("CacheGcInterval", set_cache_gcint, NULL, RSRC_CONF,
"The interval between garbage collections, in hours"),
AP_INIT_TAKE1("CacheDirLevels", set_cache_dirlevels, NULL, RSRC_CONF,