Add missing const qualifier
authorDavid Rowley <[email protected]>
Sat, 3 Dec 2022 07:33:22 +0000 (20:33 +1300)
committerDavid Rowley <[email protected]>
Sat, 3 Dec 2022 07:33:22 +0000 (20:33 +1300)
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

index 8f0d6d6210c510cb6758a00558193f11c696ea70..a7df600cc00d40dd3f59b3b81306e63fe4d15c76 100644 (file)
@@ -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)