summaryrefslogtreecommitdiff
path: root/src/bin/pg_rewind/local_source.c
diff options
context:
space:
mode:
authorPeter Eisentraut2025-12-09 05:58:39 +0000
committerPeter Eisentraut2025-12-09 06:33:08 +0000
commit2b117bb014d066549c319dcd73bd538e32b0c408 (patch)
tree3241b0bd942cdcb6bbaac7b83dcb06aabb042e81 /src/bin/pg_rewind/local_source.c
parent0c3c5c3b06a37c13a811ea93044202e06523b705 (diff)
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 <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/07fa29f9-42d7-4aac-8834-197918cbbab6%40eisentraut.org
Diffstat (limited to 'src/bin/pg_rewind/local_source.c')
-rw-r--r--src/bin/pg_rewind/local_source.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_rewind/local_source.c b/src/bin/pg_rewind/local_source.c
index 5a6e805c158..8db1a8c44aa 100644
--- a/src/bin/pg_rewind/local_source.c
+++ b/src/bin/pg_rewind/local_source.c
@@ -112,8 +112,8 @@ local_queue_fetch_file(rewind_source *source, const char *path, size_t len)
* check that the size of the file matches our earlier expectation.
*/
if (written_len != len)
- pg_fatal("size of source file \"%s\" changed concurrently: %d bytes expected, %d copied",
- srcpath, (int) len, (int) written_len);
+ pg_fatal("size of source file \"%s\" changed concurrently: %zu bytes expected, %zu copied",
+ srcpath, len, written_len);
if (close(srcfd) != 0)
pg_fatal("could not close file \"%s\": %m", srcpath);