| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Remove unnecessary (char *) casts [string] |
| Date: | 2025-02-12 07:54:26 |
| Message-ID: | E1ti7Zi-006hZe-9a@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(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/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(-)
| 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 |