Skip to content

Commit 44ed3af

Browse files
david-rowleypull[bot]
authored andcommitted
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.
1 parent c71f275 commit 44ed3af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/pg_dump/compress_io.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ AllocateCompressor(const pg_compress_specification compression_spec,
124124
* out with ahwrite().
125125
*/
126126
void
127-
ReadDataFromArchive(ArchiveHandle *AH, pg_compress_specification compression_spec,
127+
ReadDataFromArchive(ArchiveHandle *AH,
128+
const pg_compress_specification compression_spec,
128129
ReadFunc readF)
129130
{
130131
if (compression_spec.algorithm == PG_COMPRESSION_NONE)

0 commit comments

Comments
 (0)