From: David Rowley Date: Sat, 3 Dec 2022 07:33:22 +0000 (+1300) Subject: Add missing const qualifier X-Git-Url: http://git.postgresql.org/gitweb/-?a=commitdiff_plain;h=f73bd5fd081187a6515d0f0764730958ad6ba41a;p=users%2Frhaas%2Fpostgres.git 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. --- diff --git a/src/bin/pg_dump/compress_io.c b/src/bin/pg_dump/compress_io.c index 8f0d6d6210..a7df600cc0 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)