mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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
This commit is contained in:
@ -357,7 +357,7 @@ page_checksum_internal(PG_FUNCTION_ARGS, enum pageinspect_version ext_version)
|
||||
if (PageIsNew(page))
|
||||
PG_RETURN_NULL();
|
||||
|
||||
PG_RETURN_INT16(pg_checksum_page((char *) page, blkno));
|
||||
PG_RETURN_INT16(pg_checksum_page(page, blkno));
|
||||
}
|
||||
|
||||
Datum
|
||||
|
Reference in New Issue
Block a user