mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +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:
@@ -1074,7 +1074,7 @@ static void
|
||||
WriteZeroPageXlogRec(int64 pageno)
|
||||
{
|
||||
XLogBeginInsert();
|
||||
XLogRegisterData((char *) (&pageno), sizeof(pageno));
|
||||
XLogRegisterData(&pageno, sizeof(pageno));
|
||||
(void) XLogInsert(RM_CLOG_ID, CLOG_ZEROPAGE);
|
||||
}
|
||||
|
||||
@@ -1095,7 +1095,7 @@ WriteTruncateXlogRec(int64 pageno, TransactionId oldestXact, Oid oldestXactDb)
|
||||
xlrec.oldestXactDb = oldestXactDb;
|
||||
|
||||
XLogBeginInsert();
|
||||
XLogRegisterData((char *) (&xlrec), sizeof(xl_clog_truncate));
|
||||
XLogRegisterData(&xlrec, sizeof(xl_clog_truncate));
|
||||
recptr = XLogInsert(RM_CLOG_ID, CLOG_TRUNCATE);
|
||||
XLogFlush(recptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user