projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb2e7dd
)
Add missing const qualifier
author
David Rowley
<drowley@postgresql.org>
Sat, 3 Dec 2022 07:33:22 +0000
(20:33 +1300)
committer
David Rowley
<drowley@postgresql.org>
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
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_dump/compress_io.c
b/src/bin/pg_dump/compress_io.c
index 8f0d6d6210c510cb6758a00558193f11c696ea70..a7df600cc00d40dd3f59b3b81306e63fe4d15c76 100644
(file)
--- 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)