From: Yann Ylavic Date: Tue, 29 May 2018 21:43:01 +0000 (+0000) Subject: mod_proxy_balancer: follow up to r1828890: indentation and 80 col. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68d4e9ad1b9ba07f98f2b10916b70c027d4a758f;p=apache mod_proxy_balancer: follow up to r1828890: indentation and 80 col. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1832500 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/balancers/mod_lbmethod_bybusyness.c b/modules/proxy/balancers/mod_lbmethod_bybusyness.c index 4dada8cddd..709512bb5e 100644 --- a/modules/proxy/balancers/mod_lbmethod_bybusyness.c +++ b/modules/proxy/balancers/mod_lbmethod_bybusyness.c @@ -40,17 +40,19 @@ static int is_best_bybusyness(proxy_worker *current, proxy_worker *prev_best, vo } static proxy_worker *find_best_bybusyness(proxy_balancer *balancer, - request_rec *r) + request_rec *r) { int total_factor = 0; - proxy_worker *worker = ap_proxy_balancer_get_best_worker(balancer, r, is_best_bybusyness, &total_factor); + proxy_worker *worker = + ap_proxy_balancer_get_best_worker(balancer, r, is_best_bybusyness, + &total_factor); if (worker) { worker->s->lbstatus -= total_factor; - } + } return worker; - } +} /* assumed to be mutex protected by caller */ static apr_status_t reset(proxy_balancer *balancer, server_rec *s) diff --git a/modules/proxy/balancers/mod_lbmethod_byrequests.c b/modules/proxy/balancers/mod_lbmethod_byrequests.c index 69eb3e00f7..0483a70fec 100644 --- a/modules/proxy/balancers/mod_lbmethod_byrequests.c +++ b/modules/proxy/balancers/mod_lbmethod_byrequests.c @@ -85,10 +85,10 @@ static proxy_worker *find_best_byrequests(proxy_balancer *balancer, if (worker) { worker->s->lbstatus -= total_factor; - } + } return worker; - } +} /* assumed to be mutex protected by caller */ static apr_status_t reset(proxy_balancer *balancer, server_rec *s) diff --git a/modules/proxy/balancers/mod_lbmethod_bytraffic.c b/modules/proxy/balancers/mod_lbmethod_bytraffic.c index 7c42f925b5..343c59ac32 100644 --- a/modules/proxy/balancers/mod_lbmethod_bytraffic.c +++ b/modules/proxy/balancers/mod_lbmethod_bytraffic.c @@ -59,8 +59,9 @@ static proxy_worker *find_best_bytraffic(proxy_balancer *balancer, { apr_off_t min_traffic = 0; - return ap_proxy_balancer_get_best_worker(balancer, r, is_best_bytraffic, &min_traffic); - } + return ap_proxy_balancer_get_best_worker(balancer, r, is_best_bytraffic, + &min_traffic); +} /* assumed to be mutex protected by caller */ static apr_status_t reset(proxy_balancer *balancer, server_rec *s)