Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 10326 invoked from network); 2 Nov 2005 11:13:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Nov 2005 11:13:05 -0000 Received: (qmail 68664 invoked by uid 500); 2 Nov 2005 11:13:03 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 68632 invoked by uid 500); 2 Nov 2005 11:13:02 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 68615 invoked by uid 99); 2 Nov 2005 11:13:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2005 03:13:01 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jorton@redhat.com designates 66.187.233.31 as permitted sender) Received: from [66.187.233.31] (HELO mx1.redhat.com) (66.187.233.31) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2005 03:12:56 -0800 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id jA2BCd77005866 for ; Wed, 2 Nov 2005 06:12:39 -0500 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jA2BCdV09845 for ; Wed, 2 Nov 2005 06:12:39 -0500 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.13.4/8.13.4/Submit) id jA2BCb6X026263 for dev@apr.apache.org; Wed, 2 Nov 2005 11:12:38 GMT Date: Wed, 2 Nov 2005 11:12:37 +0000 From: Joe Orton To: dev@apr.apache.org Subject: Re: svn commit: r330141 - /apr/apr-util/trunk/dbd/apr_dbd.c Message-ID: <20051102111237.GA26013@redhat.com> Mail-Followup-To: dev@apr.apache.org References: <20051101224046.74894.qmail@minotaur.apache.org> <200511012354.18910@news.perlig.de> <20051102090307.GA21816@redhat.com> <200511021107.23736.nick@webthing.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <200511021107.23736.nick@webthing.com> User-Agent: Mutt/1.4.2.1i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Wed, Nov 02, 2005 at 11:07:21AM +0000, Nick Kew wrote: > On Wednesday 02 November 2005 09:03, Joe Orton wrote: > > > This code has undefined behaviour by the C standard (calling a function > > via a function pointer of incompatible type), such casts should never be > > used at all IMO. > > So where is the incompatible pointer type? (apr_status_t (*)(apr_thread_mutex_t *)) is not compatible with (apr_status_t (*)(void *)), likewise for the ->end_transaction callback. If it was compatible the cast wouldn't be needed. joe