Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 10457 invoked by uid 500); 26 Jun 2000 04:46:52 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 10446 invoked from network); 26 Jun 2000 04:46:52 -0000 Date: Sun, 25 Jun 2000 21:48:15 -0700 From: Greg Stein To: new-httpd@apache.org Subject: Re: [PATCH] un-const-ify ap_socket_t parms to allow optimizations Message-ID: <20000625214815.N29590@lyra.org> Mail-Followup-To: new-httpd@apache.org References: <200006260239.WAA01381@k5.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200006260239.WAA01381@k5.localdomain>; from trawick@ibm.net on Sun, Jun 25, 2000 at 10:39:48PM -0400 X-URL: http://www.lyra.org/greg/ X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N On Sun, Jun 25, 2000 at 10:39:48PM -0400, Jeff Trawick wrote: > Currently, the ap_socket_t parm is "const ap_socket_t *" in most cases > where it would be allowed by the current code. > > Certain optimizations (like deferring a call to getsockname() until it > is really needed) require that the ap_socket_t parameter be modified > in most any situation. This patch removes const from all applicable > ap_socket_t parameters. I prefer this change to lying about it (i.e., > using a cast). > > Comments, concerns? Seems reasonable to me. Cheers, -g -- Greg Stein, http://www.lyra.org/