httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r821538 - /httpd/httpd/trunk/modules/cache/cache_util.c
Date Sun, 04 Oct 2009 13:21:25 GMT
Author: minfrin
Date: Sun Oct  4 13:21:25 2009
New Revision: 821538

URL: http://svn.apache.org/viewvc?rev=821538&view=rev
Log:
Remove the server_rec wired into uri_meets_conditions, the debugging
statements that required it were removed in the past, so wiring through
server_rec is no longer necessary.

Modified:
    httpd/httpd/trunk/modules/cache/cache_util.c

Modified: httpd/httpd/trunk/modules/cache/cache_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/cache_util.c?rev=821538&r1=821537&r2=821538&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/cache_util.c (original)
+++ httpd/httpd/trunk/modules/cache/cache_util.c Sun Oct  4 13:21:25 2009
@@ -26,12 +26,9 @@
 
 /* Determine if "url" matches the hostname, scheme and port and path
  * in "filter". All but the path comparisons are case-insensitive.
- * Note: the 's' parameters is not used currently, but needed for
- * logging during debugging.
  */
-static int uri_meets_conditions(const server_rec * const s,
-        const apr_uri_t filter, const int pathlen, const apr_uri_t url) {
-    (void) s;
+static int uri_meets_conditions(const apr_uri_t filter, const int pathlen,
+        const apr_uri_t url) {
 
     /* Scheme, hostname port and local part. The filter URI and the
      * URI we test may have the following shapes:
@@ -130,7 +127,7 @@
     for (i = 0; i < conf->cacheenable->nelts; i++) {
         struct cache_enable *ent =
                                 (struct cache_enable *)conf->cacheenable->elts;
-        if (uri_meets_conditions(r->server,ent[i].url, ent[i].pathlen, uri)) {
+        if (uri_meets_conditions(ent[i].url, ent[i].pathlen, uri)) {
             /* Fetch from global config and add to the list. */
             cache_provider *provider;
             provider = ap_lookup_provider(CACHE_PROVIDER_GROUP, ent[i].type,
@@ -167,7 +164,7 @@
     for (i = 0; i < conf->cachedisable->nelts; i++) {
         struct cache_disable *ent =
                                (struct cache_disable *)conf->cachedisable->elts;
-        if (uri_meets_conditions(r->server,ent[i].url, ent[i].pathlen, uri)) {
+        if (uri_meets_conditions(ent[i].url, ent[i].pathlen, uri)) {
             /* Stop searching now. */
             return NULL;
         }



Mime
View raw message