Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 28697 invoked by uid 6000); 9 May 1998 21:03:56 -0000 Received: (qmail 28690 invoked from network); 9 May 1998 21:03:54 -0000 Received: from thoth.mch.sni.de (192.35.17.2) by taz.hyperreal.org with SMTP; 9 May 1998 21:03:54 -0000 X-Envelope-Sender-Is: Martin.Kraemer@mch.sni.de (at relayer thoth.mch.sni.de) Received: from deejai.mch.sni.de (deejai.mch.sni.de [139.25.105.242]) by thoth.mch.sni.de (8.8.8/8.8.8) with ESMTP id XAA14591 for ; Sat, 9 May 1998 23:03:52 +0200 (MDT) Received: (from martin@localhost) by deejai.mch.sni.de (8.8.7/8.8.7) id XAA19527; Sat, 9 May 1998 23:03:49 +0200 (MET DST) Message-ID: <19980509230346.62568@deejai.mch.sni.de> Date: Sat, 9 May 1998 23:03:46 +0200 From: Martin Kraemer To: new-httpd@apache.org Subject: Re: cvs commit: apache-1.3/src/main http_main.c References: <19980508235837.352.qmail@hyperreal.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: ; from Dean Gaudet on Fri, May 08, 1998 at 08:48:06PM -0700 Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org At the time when Ben Hyde (and I) compiled, this read just > static void reset_version() I commited the "void *dummy", and Ken later added the cast. Martin On Fri, May 08, 1998 at 08:48:06PM -0700, Dean Gaudet wrote: > On 8 May 1998 coar@hyperreal.org wrote: > > > - ap_register_cleanup(pconf, NULL, reset_version, > > - ap_null_cleanup); > > + ap_register_cleanup(pconf, NULL, (void (*)(void *))reset_version, > > + (void (*)(void *))ap_null_cleanup); > > This shouldn't be requried... especially not on ap_null_cleanup, it's > supposed to have the right prototype... and I see: > > static void reset_version(void *dummy) > > which is the right prototype... and it's the same thing you cast to. I'm > confused! > > What was the warning that triggered this change? -- | S I E M E N S | | Siemens Nixdorf | ------------- | Voice: +49-89-636-46021 | Informationssysteme AG | N I X D O R F | FAX: +49-89-636-44994 | 81730 Munich, Germany ~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request