pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove unnecessary (char *) casts [string]
Date: Wed, 12 Feb 2025 07:54:26 +0000
Message-ID: <E1ti7Zi-006hZe-9a@gemulon.postgresql.org> (raw)

Remove unnecessary (char *) casts [string]

Remove (char *) casts around string functions where the arguments or
result already have the right type and the cast is useless (or worse,
potentially casts away a qualifier, but this doesn't appear to be the
case here).

Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Discussion: https://www.postgresql.org/message-id/flat/fd1fcedb-3492-4fc8-9e3e-74b97f2db6c7%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/506183bce73a2b22308a54876f0a56a249bc26e9

Modified Files
--------------
contrib/fuzzystrmatch/dmetaphone.c          |  8 ++++----
doc/src/sgml/gist.sgml                      |  2 +-
src/backend/replication/walreceiver.c       | 14 +++++++-------
src/backend/replication/walreceiverfuncs.c  |  4 ++--
src/backend/utils/activity/backend_status.c |  6 +++---
src/interfaces/ecpg/pgtypeslib/common.c     |  2 +-
6 files changed, 18 insertions(+), 18 deletions(-)



Message-ID: <E1ti7Zi-006hZe-9a@gemulon.postgresql.org>
Permalink:  ../E1ti7Zi-006hZe-9a@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ti7Zi-006hZe-9a@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Remove unnecessary (char *) casts [string]
  In-Reply-To: <E1ti7Zi-006hZe-9a@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox