From 7fe1e763e8ddf72992bcb7f2a6a2d0013a7da82c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Malo?= Date: Thu, 26 Aug 2004 21:10:01 +0000 Subject: [PATCH] remove unused variables and fix some compiler warnings about const qualifiers git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104838 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy.c | 2 +- modules/proxy/proxy_balancer.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index 07ada90b83..e56720fe56 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -1359,7 +1359,7 @@ static const char * * Parent directive arg is the worker/balancer name. */ name = ap_getword_conf(cmd->temp_pool, &pargs); - if ((word = ap_strchr_c(name, '>'))) + if ((word = ap_strchr(name, '>'))) *word = '\0'; } else { diff --git a/modules/proxy/proxy_balancer.c b/modules/proxy/proxy_balancer.c index a5c7ea028d..dca9537cfa 100644 --- a/modules/proxy/proxy_balancer.c +++ b/modules/proxy/proxy_balancer.c @@ -427,8 +427,6 @@ static int balancer_handler(request_rec *r) void *sconf = r->server->module_config; proxy_server_conf *conf = (proxy_server_conf *) ap_get_module_config(sconf, &proxy_module); - apr_array_header_t *proxies = conf->proxies; - struct proxy_remote *ents = (struct proxy_remote *)proxies->elts; proxy_balancer *balancer, *bsel = NULL; proxy_runtime_worker *worker, *wsel = NULL; apr_table_t *params = apr_table_make(r->pool, 10); @@ -447,9 +445,9 @@ static int balancer_handler(request_rec *r) char *args = apr_pstrdup(r->pool, r->args); char *tok, *val; while (args && *args) { - if ((val = ap_strchr_c(args, '='))) { + if ((val = ap_strchr(args, '='))) { *val++ = '\0'; - if ((tok = ap_strchr_c(val, '&'))) + if ((tok = ap_strchr(val, '&'))) *tok++ = '\0'; if ((access_status = ap_unescape_url(val)) != OK) return access_status; -- 2.50.1