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
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@307389
13f79535-47bb-0310-9956-
ffa450edef68
char **route,
char **url)
{
+ proxy_worker *worker = NULL;
+
if (!balancer->sticky)
return NULL;
/* Try to find the sticky route inside url */
/* 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