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.
This commit is contained in:
David Rowley 2022-12-03 20:33:22 +13:00
parent cb2e7ddfe5
commit f73bd5fd08

View 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)