Remove unnecessary (char *) casts [checksum]

Peter Eisentraut <peter@eisentraut.org>

Commit: 1b5841d4615045e48c3a0019e36f91e4e71d0912
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-02-12T07:59:48Z
Releases: 18.0
Remove unnecessary (char *) casts [checksum]

Remove some (char *) casts related to uses of the pg_checksum_page()
function.  These casts are useless, because everything involved
already has the right type.  Moreover, these casts actually silently
discarded a const qualifier.  The declaration of a higher-level
function needs to be adjusted to fix that.

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

Discussion