]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
remove unused variables and fix some compiler warnings about const
authorAndré Malo <nd@apache.org>
Thu, 26 Aug 2004 21:10:01 +0000 (21:10 +0000)
committerAndré Malo <nd@apache.org>
Thu, 26 Aug 2004 21:10:01 +0000 (21:10 +0000)
qualifiers

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104838 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy.c
modules/proxy/proxy_balancer.c

index 07ada90b83a9d3e17ad574d9e41d6f3b9b143eb7..e56720fe5611c07c30c71c4f2a168049cbd14e1c 100644 (file)
@@ -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 {
index a5c7ea028d07deced1ea672d23614b5243d7b65e..dca9537cfa6fcd4384405d83bd93bfc78fc4fa1d 100644 (file)
@@ -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;