From: Peter Eisentraut Date: Mon, 13 Jul 2026 09:01:36 +0000 (+0200) Subject: Clean up copy_file_range() return type X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ae87df63ff693a91fbcb968850103a5a5d8cd96;p=thirdparty%2Fpostgresql.git 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 --- 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);