Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 92298 invoked from network); 12 Oct 2005 10:53:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Oct 2005 10:53:59 -0000 Received: (qmail 86107 invoked by uid 500); 12 Oct 2005 10:53:55 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 86057 invoked by uid 500); 12 Oct 2005 10:53:55 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 86046 invoked by uid 99); 12 Oct 2005 10:53:55 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 12 Oct 2005 03:53:54 -0700 Received: (qmail 91996 invoked by uid 2161); 12 Oct 2005 10:53:34 -0000 Received: from [192.168.2.4] (euler.heimnetz.de [192.168.2.4]) by cerberus.heimnetz.de (Postfix on SuSE Linux 7.0 (i386)) with ESMTP id 455001721C for ; Wed, 12 Oct 2005 12:53:19 +0200 (CEST) Message-ID: <434CEB2C.7040604@apache.org> Date: Wed, 12 Oct 2005 12:53:32 +0200 From: Ruediger Pluem User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: de, en, de-de, en-gb, cy, zu, xh MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: svn commit: r312964 - in /httpd/httpd/branches/2.2.x: CHANGES modules/proxy/mod_proxy_balancer.c modules/proxy/proxy_util.c References: <20051011214336.40947.qmail@minotaur.apache.org> <20051012100928.GA10867@redhat.com> In-Reply-To: <20051012100928.GA10867@redhat.com> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 10/12/2005 12:09 PM, Joe Orton wrote: > On Tue, Oct 11, 2005 at 09:43:35PM -0000, Jim Jagielski wrote: > ... > >>Modified: httpd/httpd/branches/2.2.x/modules/proxy/proxy_util.c >>URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.2.x/modules/proxy/proxy_util.c?rev=312964&r1=312963&r2=312964&view=diff >>============================================================================== >>--- httpd/httpd/branches/2.2.x/modules/proxy/proxy_util.c (original) >>+++ httpd/httpd/branches/2.2.x/modules/proxy/proxy_util.c Tue Oct 11 14:43:32 2005 >>@@ -1212,24 +1212,34 @@ >> const char *url) >> { >> proxy_worker *worker; >>- char *c, *uri = apr_pstrdup(p, url); >>+ proxy_worker *max_worker = NULL; >>+ int max_match = 0; >>+ int url_length; >>+ int worker_name_length; >>+ char *c; >> int i; >> >>- c = strchr(uri, ':'); >>+ c = strchr(url, ':'); >> if (c == NULL || c[1] != '/' || c[2] != '/' || c[3] == '\0') >> return NULL; > > > That broke the -Wall -Werror build with --enable-maintainer-mode > > cc1: warnings being treated as errors > proxy_util.c: In function 'ap_proxy_get_worker': > proxy_util.c:1222: warning: passing argument 1 of 'ap_strchr' discards qualifiers from pointer target type Sorry for the stupid question: Is this because *url is const? > > is this the code which is about to be removed anyway? Yes, I currently discuss this with Jim. The question is if this check is a valuable quick way or not. I don't think that this is the case in a correctly configured system, but I would like to wait for Jims response on that. Regards RĂ¼diger