From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Remove unnecessary (char *) casts [mem] |
Date: | 2025-02-12 07:54:26 |
Message-ID: | E1ti7Zi-006hZf-AQ@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Remove unnecessary (char *) casts [mem]
Remove (char *) casts around memory functions such as memcmp(),
memcpy(), or memset() where the cast is useless. Since these
functions don't take char * arguments anyway, these casts are at best
complicated casts to (void *), about which see commit 7f798aca1d5.
Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)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/827b4060a8e35047c1adc9ca2ab3d8e7ad905df0
Modified Files
--------------
contrib/pg_trgm/trgm_gist.c | 6 +++---
contrib/xml2/xpath.c | 4 ++--
src/backend/access/common/heaptuple.c | 6 +++---
src/backend/access/heap/heapam_xlog.c | 12 ++++++------
src/backend/access/table/toast_helper.c | 2 +-
src/backend/access/transam/xlog.c | 2 +-
src/backend/access/transam/xlogreader.c | 2 +-
src/backend/bootstrap/bootstrap.c | 4 ++--
src/backend/libpq/be-secure-gssapi.c | 2 +-
src/backend/replication/logical/decode.c | 8 ++------
src/backend/storage/buffer/bufmgr.c | 2 +-
src/backend/storage/buffer/localbuf.c | 2 +-
src/backend/storage/file/fd.c | 4 ++--
src/backend/storage/page/bufpage.c | 8 ++++----
src/backend/tcop/postgres.c | 4 ++--
src/backend/utils/activity/backend_status.c | 4 ++--
src/interfaces/ecpg/compatlib/informix.c | 2 +-
src/interfaces/ecpg/ecpglib/misc.c | 14 +++++++-------
src/interfaces/libpq/fe-lobj.c | 2 +-
src/interfaces/libpq/fe-secure-gssapi.c | 2 +-
20 files changed, 44 insertions(+), 48 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2025-02-12 08:05:32 | pgsql: Remove unnecessary (char *) casts [checksum] |
Previous Message | John Naylor | 2025-02-12 06:44:52 | pgsql: Doc: Fix punctuation errors |