Remove unnecessary (char *) casts [string]
Peter Eisentraut <peter@eisentraut.org>
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@ilmari.org> Discussion: https://www.postgresql.org/message-id/flat/fd1fcedb-3492-4fc8-9e3e-74b97f2db6c7%40eisentraut.org
Files
| Path | Change | +/− |
|---|---|---|
| contrib/fuzzystrmatch/dmetaphone.c | modified | +4 −4 |
| doc/src/sgml/gist.sgml | modified | +1 −1 |
| src/backend/replication/walreceiver.c | modified | +7 −7 |
| src/backend/replication/walreceiverfuncs.c | modified | +2 −2 |
| src/backend/utils/activity/backend_status.c | modified | +3 −3 |
| src/interfaces/ecpg/pgtypeslib/common.c | modified | +1 −1 |
Documentation touched
Discussion
- Remove useless casts to (char *) 8 messages · 2025-02-05 → 2025-03-27