From 1ae87df63ff693a91fbcb968850103a5a5d8cd96 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 13 Jul 2026 11:01:36 +0200 Subject: [PATCH] Clean up copy_file_range() return type The return type is ssize_t, not int. Fix that in one instance; the others were already okay. Reviewed-by: Heikki Linnakangas Discussion: https://www.postgresql.org/message-id/flat/f9aab072-0078-49e4-ab93-3b08086a4406@eisentraut.org --- src/bin/pg_combinebackup/reconstruct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_combinebackup/reconstruct.c b/src/bin/pg_combinebackup/reconstruct.c index 8748d38d4b6..5000f7be001 100644 --- a/src/bin/pg_combinebackup/reconstruct.c +++ b/src/bin/pg_combinebackup/reconstruct.c @@ -695,7 +695,7 @@ write_reconstructed_file(const char *input_filename, */ do { - int wb; + ssize_t wb; wb = copy_file_range(s->fd, &off, wfd, NULL, BLCKSZ - nwritten, 0); -- 2.47.3