mirror of
https://github.com/postgres/postgres.git
synced 2025-12-16 16:42:29 +03:00
Remove unnecessary casts in printf format arguments (%zu/%zd)
Many of these are probably left over from before use of %zu/%zd was portable. Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/07fa29f9-42d7-4aac-8834-197918cbbab6%40eisentraut.org
This commit is contained in:
@@ -1035,8 +1035,8 @@ digestControlFile(ControlFileData *ControlFile, const char *content,
|
||||
size_t size)
|
||||
{
|
||||
if (size != PG_CONTROL_FILE_SIZE)
|
||||
pg_fatal("unexpected control file size %d, expected %d",
|
||||
(int) size, PG_CONTROL_FILE_SIZE);
|
||||
pg_fatal("unexpected control file size %zu, expected %d",
|
||||
size, PG_CONTROL_FILE_SIZE);
|
||||
|
||||
memcpy(ControlFile, content, sizeof(ControlFileData));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user