You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2005/10/09 12:59:10 UTC
svn commit: r307389 - /httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
Author: rpluem
Date: Sun Oct 9 03:59:06 2005
New Revision: 307389
URL: http://svn.apache.org/viewcvs?rev=307389&view=rev
Log:
* Fix a declaration problem introduced in r195013 that is C99 but not ANSI C
compatible. Thus move declaration of *worker to the top of find_session_route
to make it ANSI C compatible again.
Submitted by: NormW <normw bocnet.com.au>
Reviewed by: Ruediger Pluem
Modified:
httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
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=307389&r1=307388&r2=307389&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c Sun Oct 9 03:59:06 2005
@@ -187,6 +187,8 @@
char **route,
char **url)
{
+ proxy_worker *worker = NULL;
+
if (!balancer->sticky)
return NULL;
/* Try to find the sticky route inside url */
@@ -208,7 +210,7 @@
/* We have a route in path or in cookie
* Find the worker that has this route defined.
*/
- proxy_worker *worker = find_route_worker(balancer, *route);
+ worker = find_route_worker(balancer, *route);
if (worker && !PROXY_WORKER_IS_USABLE(worker)) {
/* We have a worker that is unusable.
* It can be in error or disabled, but in case