httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r279973 - in /httpd/httpd/trunk/modules/proxy: mod_proxy.c mod_proxy_balancer.c
Date Sat, 10 Sep 2005 09:10:30 GMT
Author: jorton
Date: Sat Sep 10 02:10:27 2005
New Revision: 279973

URL: http://svn.apache.org/viewcvs?rev=279973&view=rev
Log:
* modules/proxy/mod_proxy_balancer.c (balancer_handler): Fix gcc
warning; no functional change.

* modules/proxy/mod_proxy.c (set_balancer_param): Likewise.

Modified:
    httpd/httpd/trunk/modules/proxy/mod_proxy.c
    httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/proxy/mod_proxy.c?rev=279973&r1=279972&r2=279973&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy.c Sat Sep 10 02:10:27 2005
@@ -274,7 +274,8 @@
     }
     else if (!strcasecmp(key, "lbmethod")) {
         proxy_balancer_method *provider;
-        if (provider = ap_lookup_provider(PROXY_LBMETHOD, val, "0")) {
+        provider = ap_lookup_provider(PROXY_LBMETHOD, val, "0");
+        if (provider) {
             balancer->lbmethod = provider;
             return NULL;
         }

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c?rev=279973&r1=279972&r2=279973&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c Sat Sep 10 02:10:27 2005
@@ -517,7 +517,8 @@
         }
         if ((val = apr_table_get(params, "lm"))) {
             proxy_balancer_method *provider;
-            if (provider = ap_lookup_provider(PROXY_LBMETHOD, val, "0")) {
+            provider = ap_lookup_provider(PROXY_LBMETHOD, val, "0");
+            if (provider) {
                 bsel->lbmethod = provider;
             }
         }



Mime
View raw message