Received: by taz.hyperreal.com (8.6.12/8.6.5) id JAA00315; Wed, 24 Apr 1996 09:17:12 -0700 Received: from arachnet.algroup.co.uk by taz.hyperreal.com (8.6.12/8.6.5) with SMTP id JAA00305; Wed, 24 Apr 1996 09:17:06 -0700 Received: from heap.ben.algroup.co.uk by arachnet.algroup.co.uk id aa01777; 24 Apr 96 17:16 BST Received: from gonzo.ben.algroup.co.uk by heap.ben.algroup.co.uk id aa21490; 24 Apr 96 16:44 BST Subject: Re: compilation warning To: new-httpd@hyperreal.com Date: Wed, 24 Apr 1996 16:40:07 +0100 (BST) From: Ben Laurie In-Reply-To: <199604241539.AA250020342@ooo.lanl.gov> from "Rob Hartill" at Apr 24, 96 09:39:02 am X-Mailer: ELM [version 2.4 PL24 PGP2] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1905 Message-ID: <9604241640.aa19144@gonzo.ben.algroup.co.uk> Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com Rob Hartill wrote: > > > The following is needed to keep my HPUX compiler happy. > It'll probably cause other compilers to barf, so it needs a more > general solution. Yech. SCO doesn't like it... cc -c -O2 -w3 -v -DSCO5 http_main.c "http_main.c", line 1132: warning: argument is incompatible with prototype: arg #2 I've been thinking about this problem wrt the sprintf problem in mod_status ... its a drag having to fill the code with casts (and worse) to fix broken compilers. I'd rather have something like os_select() instead, which is #define'd to the appropriate thing on a per-system basis. os_sprintf is a little harder, since it needs code to fix it when it is broken. There are a few other things which could be tidied in this way, for example, the setjmp/sigsetjmp stuff in http_main.c. Cheers, Ben. > > > *** http_main.c.orig Wed Apr 24 09:31:30 1996 > --- http_main.c Wed Apr 24 09:34:21 1996 > *************** > *** 1129,1135 **** > > for (;;) { > memcpy(&fds, &listenfds, sizeof(fd_set)); > ! csd = select(listenmaxfd+1, &fds, NULL, NULL, NULL); > if (csd == -1 && errno != EINTR) > log_unixerr("select",NULL,"select error", server_conf); > if (csd <= 0) continue; > --- 1129,1135 ---- > > for (;;) { > memcpy(&fds, &listenfds, sizeof(fd_set)); > ! csd = select(listenmaxfd+1, (int *) &fds, NULL, NULL, NULL); > if (csd == -1 && errno != EINTR) > log_unixerr("select",NULL,"select error", server_conf); > if (csd <= 0) continue; > -- Ben Laurie Phone: +44 (181) 994 6435 Freelance Consultant and Fax: +44 (181) 994 6472 Technical Director Email: ben@algroup.co.uk A.L. Digital Ltd, URL: http://www.algroup.co.uk London, England.