Remove useless unconstify() call
authorPeter Eisentraut <[email protected]>
Thu, 25 Jul 2024 09:38:05 +0000 (11:38 +0200)
committerPeter Eisentraut <[email protected]>
Thu, 25 Jul 2024 09:38:05 +0000 (11:38 +0200)
This should have been part of 67c0ef9752 but was apparently forgotten
there.

src/bin/pg_dump/compress_gzip.c

index 26768b9f71a26bf6bdc6af7d765673f8ef2ce8e7..9e1b7c157ea767f9867781d149a6e573d2bdc716 100644 (file)
@@ -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);
 }