]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Temporary fix for the len type discrepancy, with documentation to be fixed.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 13 Oct 2002 19:35:04 +0000 (19:35 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 13 Oct 2002 19:35:04 +0000 (19:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97195 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_cache.h
modules/experimental/mod_disk_cache.c

index d98ba3edf5c14dc1ea598cd05e25fd6546b83905..159414a5bad52114807387409e5adbafb1df247a 100644 (file)
@@ -206,6 +206,13 @@ struct cache_info {
 };
 
 /* cache handle information */
+
+/* XXX TODO On the next structure change/MMN bump, 
+ * count must become an apr_off_t, representing
+ * the potential size of disk cached objects.
+ * Then dig for
+ * "XXX Bad Temporary Cast - see cache_object_t notes" 
+ */
 typedef struct cache_object cache_object_t;
 struct cache_object {
     char *key;
index 2accbdc9986840c6915e69abe514d368c156348f..a3c002e7f3e3b31ac87868eb495c64dc01d74d9c 100644 (file)
@@ -338,7 +338,8 @@ static int create_entity(cache_handle_t *h, request_rec *r,
     obj->vobj = dobj = apr_pcalloc(r->pool, sizeof(*dobj));
 
     obj->key = apr_pstrdup(r->pool, key);
-    obj->info.len = len;
+    /* XXX Bad Temporary Cast - see cache_object_t notes */
+    obj->info.len = (apr_size_t) len;
     obj->complete = 0;   /* Cache object is not complete */
 
     dobj->name = obj->key;