git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 37c6923)
Remove useless unconstify() call
2024年7月25日 09:38:05 +0000 (11:38 +0200)
2024年7月25日 09:38:05 +0000 (11:38 +0200)
This should have been part of 67c0ef9752 but was apparently forgotten
there.


diff --git a/src/bin/pg_dump/compress_gzip.c b/src/bin/pg_dump/compress_gzip.c
index 26768b9f71a26bf6bdc6af7d765673f8ef2ce8e7..9e1b7c157ea767f9867781d149a6e573d2bdc716 100644 (file)
--- a/src/bin/pg_dump/compress_gzip.c
+++ b/src/bin/pg_dump/compress_gzip.c
@@ -154,7 +154,7 @@ WriteDataToArchiveGzip(ArchiveHandle *AH, CompressorState *cs,
{
GzipCompressorState *gzipcs = (GzipCompressorState *) cs->private_data;
- gzipcs->zp->next_in = (void *) unconstify(void *, data);
+ gzipcs->zp->next_in = data;
gzipcs->zp->avail_in = dLen;
DeflateCompressorCommon(AH, cs, false);
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /