From f73bd5fd081187a6515d0f0764730958ad6ba41a Mon Sep 17 00:00:00 2001 From: David Rowley Date: Sat, 3 Dec 2022 20:33:22 +1300 Subject: [PATCH] Add missing const qualifier This is present in the declaration for ReadDataFromArchive, so we'd better have it in the definition too in order to avoid compilers from complaining about the mismatch of function signatures. --- src/bin/pg_dump/compress_io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/pg_dump/compress_io.c b/src/bin/pg_dump/compress_io.c index 8f0d6d6210c..a7df600cc00 100644 --- a/src/bin/pg_dump/compress_io.c +++ b/src/bin/pg_dump/compress_io.c @@ -124,7 +124,8 @@ AllocateCompressor(const pg_compress_specification compression_spec, * out with ahwrite(). */ void -ReadDataFromArchive(ArchiveHandle *AH, pg_compress_specification compression_spec, +ReadDataFromArchive(ArchiveHandle *AH, + const pg_compress_specification compression_spec, ReadFunc readF) { if (compression_spec.algorithm == PG_COMPRESSION_NONE) -- 2.39.5