Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 732B69FC1DF for ; Fri, 13 Jul 2007 10:58:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 69972-10 for ; Fri, 13 Jul 2007 10:58:15 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from gmp-ea-fw-1.sun.com (gmp-ea-fw-1.sun.com [192.18.1.36]) by postgresql.org (Postfix) with ESMTP id DA02F9FBAF1 for ; Fri, 13 Jul 2007 10:58:24 -0300 (ADT) Received: from d1-emea-09.sun.com (d1-emea-09.sun.com [192.18.2.119]) by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l6DDwInG000508 for ; Fri, 13 Jul 2007 13:58:18 GMT Received: from conversion-daemon.d1-emea-09.sun.com by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JL400701ERSYN00@d1-emea-09.sun.com> (original mail from Zdenek.Kotala@Sun.COM) for pgsql-hackers@postgresql.org; Fri, 13 Jul 2007 14:58:18 +0100 (BST) Received: from [129.150.120.147] by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JL4005JLET5QGQV@d1-emea-09.sun.com>; Fri, 13 Jul 2007 14:58:18 +0100 (BST) Date: Fri, 13 Jul 2007 15:58:17 +0200 From: Zdenek Kotala Subject: Re: compiler warnings on the buildfarm In-reply-to: <20908.1184334730@sss.pgh.pa.us> To: Tom Lane Cc: Heikki Linnakangas , Kris Jurka , Stefan Kaltenbrunner , PostgreSQL-development , Gorm.Andersen@Sun.COM Message-id: <469784F9.50400@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <46962BBD.5000108@kaltenbrunner.cc> <17428.1184249229@sss.pgh.pa.us> <469653BA.2040004@kaltenbrunner.cc> <20917.1184257896@sss.pgh.pa.us> <46969A2E.2020608@kaltenbrunner.cc> <16415.1184285944@sss.pgh.pa.us> <27687.1184290111@sss.pgh.pa.us> <46976F2C.4090303@sun.com> <46977F92.7000000@sun.com> <469780E5.80502@enterprisedb.com> <20908.1184334730@sss.pgh.pa.us> User-Agent: Thunderbird 2.0.0.0 (X11/20070508) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/389 X-Sequence-Number: 105304 Tom Lane wrote: > Heikki Linnakangas writes: >> Zdenek Kotala wrote: >>> I don't see any "const" keyword there. > >> Right after that: > >>> where int conv(int num_msg, const struct pam_message **msg, struct pam_response **resp, void *appdata_ptr); > >> How confusing... > > And the pam_start page he cited earlier has a different set of typos in > its version of the struct :-(. Still, that's two out of three places > that say it's const, and Solaris appears to be the only implementation > that has chosen to read it as not const. Yes, Agree. I try to send request to security team for explanation. Maybe original author also overlooked it as me today :-). Zdenek