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 various unnecessary (char *) casts
Date: Thu, 20 Feb 2025 18:58:30 +0000
Message-ID: <E1tlBkm-000LgU-0R@gemulon.postgresql.org> (raw)

Remove various unnecessary (char *) casts

Remove a number of (char *) casts that are unnecessary.  Or in some
cases, rewrite the code to make the purpose of the cast clearer.

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/3e4d868615408370fe6c2977c32f45a47c372b00

Modified Files
--------------
contrib/ltree/ltxtquery_io.c             |  2 +-
contrib/pg_trgm/trgm_gist.c              | 10 +++++-----
contrib/postgres_fdw/postgres_fdw.c      |  8 ++++----
src/backend/access/transam/xlog.c        |  4 ++--
src/backend/libpq/auth.c                 |  8 +++++---
src/backend/nodes/copyfuncs.c            |  2 +-
src/backend/nodes/makefuncs.c            |  2 +-
src/backend/storage/page/bufpage.c       |  2 +-
src/backend/utils/cache/relmapper.c      |  4 ++--
src/backend/utils/error/jsonlog.c        |  2 +-
src/bin/pg_basebackup/pg_receivewal.c    |  2 +-
src/bin/pg_dump/compress_gzip.c          |  2 +-
src/bin/pg_rewind/pg_rewind.c            |  2 +-
src/bin/psql/describe.c                  |  2 +-
src/common/controldata_utils.c           |  4 ++--
src/interfaces/ecpg/ecpglib/descriptor.c |  4 ++--
src/interfaces/ecpg/ecpglib/execute.c    |  2 +-
src/interfaces/ecpg/pgtypeslib/numeric.c |  4 ++--
18 files changed, 34 insertions(+), 32 deletions(-)



Message-ID: <E1tlBkm-000LgU-0R@gemulon.postgresql.org>
Permalink:  ../E1tlBkm-000LgU-0R@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tlBkm-000LgU-0R@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 various unnecessary (char *) casts
  In-Reply-To: <E1tlBkm-000LgU-0R@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