]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/cache/mod_disk_cache.c (store_body): Fix format string
authorJoe Orton <jorton@apache.org>
Fri, 11 Feb 2005 12:16:06 +0000 (12:16 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 11 Feb 2005 12:16:06 +0000 (12:16 +0000)
warnings; print integers using _FMT strings.

* modules/cache/cache_util.c (ap_cache_check_freshness): Remove unused
variable.

* modules/cache/cache_storage.c (cache_select_url): Remove unused
variable.

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

modules/cache/cache_storage.c
modules/cache/cache_util.c
modules/cache/mod_disk_cache.c

index de091bca1e000dbe53a222cfdfaf300dbfc4107a..b3489803c47b72bcb3d8a84598234c7d2d7cb84c 100644 (file)
@@ -188,7 +188,6 @@ int cache_select_url(request_rec *r, char *url)
         switch ((rv = list->provider->open_entity(h, r, key))) {
         case OK: {
             char *vary = NULL;
-            const char *varyhdr = NULL;
             int fresh;
 
             if (list->provider->recall_headers(h, r) != APR_SUCCESS) {
index 5598ae91864705b88203b1cb21288589c4944632..dc03017efb2153c0d7746a54888eb4642eb43928 100644 (file)
@@ -126,7 +126,6 @@ CACHE_DECLARE(int) ap_cache_check_freshness(cache_handle_t *h,
 {
     apr_int64_t age, maxage_req, maxage_cresp, maxage, smaxage, maxstale;
     apr_int64_t minfresh;
-    int age_in_errhdr = 0;
     const char *cc_cresp, *cc_req;
     const char *agestr = NULL;
     const char *expstr = NULL;
index efdb4a6d374c6bc92a04b5f827bb9d3edb40cf74..bfe343b24ad5f67167f35f934f5e74832412abfc 100644 (file)
@@ -659,9 +659,9 @@ static apr_status_t store_body(cache_handle_t *h, request_rec *r,
         dobj->file_size += written;
         if (dobj->file_size > conf->maxfs) {
             ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
-                         "cache_disk: URL %s failed the size check (%lu>%lu)",
-                         h->cache_obj->key, (unsigned long)dobj->file_size,
-                         (unsigned long)conf->maxfs);
+                         "cache_disk: URL %s failed the size check "
+                         "(%" APR_OFF_T_FMT ">%" APR_SIZE_T_FMT ")",
+                         h->cache_obj->key, dobj->file_size, conf->maxfs);
             /* Remove the intermediate cache file and return non-APR_SUCCESS */
             file_cache_errorcleanup(dobj, r);
             return APR_EGENERAL;
@@ -683,7 +683,8 @@ static apr_status_t store_body(cache_handle_t *h, request_rec *r,
         }
         if (dobj->file_size < conf->minfs) {
             ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
-                         "cache_disk: URL %s failed the size check (%lu<%lu)",
+                         "cache_disk: URL %s failed the size check "
+                         "(%" APR_OFF_T_FMT "<%" APR_SIZE_T_FMT ")",
                          h->cache_obj->key, dobj->file_size, conf->minfs);
             /* Remove the intermediate cache file and return non-APR_SUCCESS */
             file_cache_errorcleanup(dobj, r);