Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8lyL-0004fA-Vo for pgsql-committers@arkaria.postgresql.org; Tue, 26 Mar 2019 13:18:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h8lyK-0002qH-Ck for pgsql-committers@arkaria.postgresql.org; Tue, 26 Mar 2019 13:18:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8lyK-0002qA-3Z for pgsql-committers@lists.postgresql.org; Tue, 26 Mar 2019 13:18:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8lyH-00013f-Qr for pgsql-committers@lists.postgresql.org; Tue, 26 Mar 2019 13:18:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x2QDIQpf016048; Tue, 26 Mar 2019 09:18:26 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix misplaced const In-reply-to: References: Comments: In-reply-to Peter Eisentraut message dated "Tue, 26 Mar 2019 08:32:27 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16046.1553606306.1@sss.pgh.pa.us> Date: Tue, 26 Mar 2019 09:18:26 -0400 Message-ID: <16047.1553606306@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > Fix misplaced const > These instances were apparently trying to carry the const qualifier > from the arguments through the complex casts, but for that the const > qualifier was misplaced. Hmm, maybe even better to make it like this? const char *sa = *((const char *const *) a); regards, tom lane