mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Remove unnecessary (char *) casts [xlog]
Remove (char *) casts no longer needed after XLogRegisterData() and XLogRegisterBufData() argument type change. 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:
@ -424,7 +424,7 @@ pg_truncate_visibility_map(PG_FUNCTION_ARGS)
|
||||
xlrec.flags = SMGR_TRUNCATE_VM;
|
||||
|
||||
XLogBeginInsert();
|
||||
XLogRegisterData((char *) &xlrec, sizeof(xlrec));
|
||||
XLogRegisterData(&xlrec, sizeof(xlrec));
|
||||
|
||||
lsn = XLogInsert(RM_SMGR_ID,
|
||||
XLOG_SMGR_TRUNCATE | XLR_SPECIAL_REL_UPDATE);
|
||||
|
Reference in New Issue
Block a user