Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 64679 invoked from network); 3 Jan 2006 14:39:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jan 2006 14:39:25 -0000 Received: (qmail 40431 invoked by uid 500); 3 Jan 2006 14:39:12 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 40220 invoked by uid 500); 3 Jan 2006 14:39:11 -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 40159 invoked by uid 99); 3 Jan 2006 14:39:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2006 06:39:11 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.133.192.6] (HELO devsys.jaguNET.com) (209.133.192.6) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2006 06:39:08 -0800 Received: (from jim@localhost) by devsys.jaguNET.com (8.11.7a/jag-2.6) id k03EckJ01227; Tue, 3 Jan 2006 09:38:46 -0500 (EST) From: Jim Jagielski Message-Id: <200601031438.k03EckJ01227@devsys.jaguNET.com> Subject: Re: svn commit: r365376 - /httpd/httpd/branches/fcgi-proxy-dev/modules/proxy/mod_proxy_fcgi.c To: dev@httpd.apache.org Date: Tue, 3 Jan 2006 09:38:43 -0500 (EST) Cc: cvs@httpd.apache.org Reply-To: jim@jaguNET.com In-Reply-To: from "Garrett Rooney" at Jan 02, 2006 08:08:41 PM X-Mailer: ELM [version 2.5 PL5] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Garrett Rooney wrote: > > On 1/2/06, jim@apache.org wrote: > > Author: jim > > Date: Mon Jan 2 08:52:58 2006 > > New Revision: 365376 > > > > URL: http://svn.apache.org/viewcvs?rev=3D365376&view=3Drev > > Log: > > Avoid magic numbers. Since we are reading the header, let's > > be explicit about it. Also removes the need to clean up > > the readbuf again, and any potential for confusion on > > what we are doing ;) > > Um, doesn't this assume that there's no padding in the compiler's > layout of the struct? Is that safe to do? I've always been under the > impression that relying on such things is not portable. If nothing > else we should probably have a compile time check that it's size =3D=3D 8, > or something... > I'm fine with removing the use of sizeof and sticking with '8', since it's a defined value in the FCGI protocol itself. But we use sizeof header in loads of other places there as well... -- =========================================================================== Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/ "If you can dodge a wrench, you can dodge a ball."