summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rowley2022-12-03 07:33:22 +0000
committerDavid Rowley2022-12-03 07:33:22 +0000
commitf73bd5fd081187a6515d0f0764730958ad6ba41a (patch)
tree40c9a271c06725dc3c7d8aa84a2bfa7e2b16eb8d
parentcb2e7ddfe571e2a158725200a33f728232059c2e (diff)
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.
-rw-r--r--src/bin/pg_dump/compress_io.c3
1 files changed, 2 insertions, 1 deletions
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)