Skip to content

Commit dacbd84

Browse files
committed
Drop an unnecessary variable, fix clang warning
1 parent 58982a2 commit dacbd84

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

native/mod_proxy_cluster/mod_proxy_cluster.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2430,7 +2430,6 @@ static int proxy_cluster_post_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t
24302430
APR_OPTIONAL_FN_TYPE(ap_watchdog_register_callback) *mc_watchdog_register_callback;
24312431
server_rec *s = main_s;
24322432
void *sconf = s->module_config;
2433-
int idx;
24342433
int has_static_workers = 0;
24352434
proxy_server_conf *conf = (proxy_server_conf *)ap_get_module_config(sconf, &proxy_module);
24362435
apr_time_t watchdog_interval = cache_share_for ? cache_share_for : apr_time_from_sec(1);
@@ -2489,7 +2488,7 @@ static int proxy_cluster_post_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t
24892488
}
24902489

24912490
/* check for static workers and warn if that is the case */
2492-
for (idx = 0; s; ++idx) {
2491+
while (s) {
24932492
int i;
24942493
proxy_balancer *balancer;
24952494
void *sconf = s->module_config;

0 commit comments

Comments
 (0)