pgsql: Remove useless casts to (void *) in arguments of some system fun

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove useless casts to (void *) in arguments of some system fun
Date: 2023-02-07 06:13:24
Message-ID: E1pPHEJ-001zhQ-KL@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove useless casts to (void *) in arguments of some system functions

The affected functions are: bsearch, memcmp, memcpy, memset, memmove,
qsort, repalloc

Reviewed-by: Corey Huinker <corey(dot)huinker(at)gmail(dot)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/aa6954104644334c53838f181053b9f7aa13f58c

Modified Files
--------------
contrib/btree_gist/btree_bit.c | 2 +-
contrib/btree_gist/btree_interval.c | 4 ++--
contrib/btree_gist/btree_utils_num.c | 8 ++++----
contrib/btree_gist/btree_utils_var.c | 4 ++--
contrib/btree_gist/btree_uuid.c | 4 ++--
contrib/citext/citext.c | 2 +-
contrib/hstore/hstore_gist.c | 6 +++---
contrib/hstore/hstore_io.c | 2 +-
contrib/intarray/_int_gist.c | 6 +++---
contrib/intarray/_int_tool.c | 2 +-
contrib/intarray/_intbig_gist.c | 6 +++---
contrib/ltree/_ltree_gist.c | 6 +++---
contrib/ltree/ltree_gist.c | 2 +-
contrib/ltree/ltxtquery_io.c | 6 +++---
contrib/pg_surgery/heap_surgery.c | 2 +-
contrib/pg_trgm/trgm_gist.c | 10 +++++-----
contrib/pg_trgm/trgm_op.c | 4 ++--
doc/src/sgml/xfunc.sgml | 4 ++--
src/backend/access/brin/brin_minmax_multi.c | 6 +++---
src/backend/access/gin/ginutil.c | 2 +-
src/backend/access/gist/gistproc.c | 4 ++--
src/backend/access/gist/gistutil.c | 2 +-
src/backend/access/nbtree/nbtutils.c | 4 ++--
src/backend/catalog/dependency.c | 6 +++---
src/backend/catalog/pg_shdepend.c | 2 +-
src/backend/commands/analyze.c | 8 ++++----
src/backend/commands/collationcmds.c | 2 +-
src/backend/commands/vacuum.c | 4 ++--
src/backend/executor/nodeTidscan.c | 2 +-
src/backend/nodes/tidbitmap.c | 8 ++++----
src/backend/partitioning/partbounds.c | 4 ++--
src/backend/statistics/extended_stats.c | 2 +-
src/backend/statistics/mcv.c | 4 ++--
src/backend/statistics/mvdistinct.c | 2 +-
src/backend/storage/ipc/procarray.c | 4 ++--
src/backend/tsearch/spell.c | 14 +++++++-------
src/backend/tsearch/to_tsany.c | 2 +-
src/backend/tsearch/ts_parse.c | 6 +++---
src/backend/tsearch/ts_utils.c | 3 +--
src/backend/utils/adt/tsgistidx.c | 12 ++++++------
src/backend/utils/adt/tsquery.c | 6 +++---
src/backend/utils/adt/tsquery_cleanup.c | 4 ++--
src/backend/utils/adt/tsquery_gist.c | 2 +-
src/backend/utils/adt/tsquery_util.c | 2 +-
src/backend/utils/adt/tsrank.c | 4 ++--
src/backend/utils/adt/tsvector.c | 15 +++++++--------
src/bin/pg_dump/parallel.c | 2 +-
src/bin/pg_dump/pg_backup_archiver.c | 3 +--
src/bin/pg_dump/pg_dump_sort.c | 2 +-
src/bin/pg_upgrade/function.c | 2 +-
src/bin/pgbench/pgbench.c | 6 +++---
src/tutorial/funcs.c | 4 ++--
52 files changed, 116 insertions(+), 119 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2023-02-07 16:57:06 pgsql: Remove leftover code in deconstruct_distribute_oj_quals().
Previous Message Amit Kapila 2023-02-07 04:40:15 pgsql: Use appropriate wait event when sending data in the apply worker