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 useless casts to (void *) in hash_search() calls
Date: Mon, 06 Feb 2023 08:48:54 +0000
Message-ID: <E1pOxBF-001qBB-08@gemulon.postgresql.org> (raw)

Remove useless casts to (void *) in hash_search() calls

Some of these appear to be leftovers from when hash_search() took a
char * argument (changed in 5999e78fc45dcb91784b64b6e9ae43f4e4f68ca2).

Since after this there is some more horizontal space available, do
some light reformatting where suitable.

Reviewed-by: Corey Huinker <corey.huinker@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/fd9adf5d-b1aa-e82f-e4c7-263c30145807%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/54a177a948b0a773c25c6737d1cc3cc49222a526

Modified Files
--------------
contrib/postgres_fdw/shippable.c                | 12 ++----
src/backend/access/gist/gistbuild.c             |  4 +-
src/backend/access/gist/gistbuildbuffers.c      |  2 +-
src/backend/access/transam/xlogutils.c          |  6 +--
src/backend/catalog/storage.c                   |  4 +-
src/backend/optimizer/util/predtest.c           |  2 +-
src/backend/parser/parse_oper.c                 |  6 +--
src/backend/replication/logical/relation.c      |  6 +--
src/backend/replication/logical/reorderbuffer.c | 34 ++++-------------
src/backend/replication/pgoutput/pgoutput.c     |  2 +-
src/backend/storage/buffer/buf_table.c          |  6 +--
src/backend/storage/buffer/bufmgr.c             | 17 ++-------
src/backend/storage/buffer/localbuf.c           | 15 +++-----
src/backend/storage/lmgr/lock.c                 | 50 ++++++++++++-------------
src/backend/storage/smgr/smgr.c                 |  6 +--
src/backend/storage/sync/sync.c                 |  4 +-
src/backend/tsearch/ts_typanalyze.c             |  4 +-
src/backend/utils/adt/array_typanalyze.c        |  4 +-
src/backend/utils/adt/ri_triggers.c             |  8 ++--
src/backend/utils/cache/attoptcache.c           |  6 +--
src/backend/utils/cache/relcache.c              | 12 +++---
src/backend/utils/cache/relfilenumbermap.c      |  6 +--
src/backend/utils/cache/spccache.c              |  6 +--
src/backend/utils/cache/ts_cache.c              | 14 +++----
src/backend/utils/cache/typcache.c              |  8 ++--
src/backend/utils/time/combocid.c               |  2 +-
src/pl/plpgsql/src/pl_comp.c                    |  6 +--
src/pl/plpgsql/src/pl_exec.c                    |  2 +-
28 files changed, 108 insertions(+), 146 deletions(-)



Message-ID: <E1pOxBF-001qBB-08@gemulon.postgresql.org>
Permalink:  ../E1pOxBF-001qBB-08@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pOxBF-001qBB-08@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Remove useless casts to (void *) in hash_search() calls
  In-Reply-To: <E1pOxBF-001qBB-08@gemulon.postgresql.org>
  References: <E1pOxBF-001qBB-08@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