diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-01-29 01:16:24 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-02-13 11:50:16 +0100 |
commit | 37d9916020286caec810f4de61fbd0de3568454d (patch) | |
tree | d9d80040f72093664d8a20b55de2a670988d281e /src/bin/pg_basebackup/walmethods.c | |
parent | cf40dc65b676c8df1ee12f060b40f0e37a183e04 (diff) |
More unconstify use
Replace casts whose only purpose is to cast away const with the
unconstify() macro.
Discussion: https://www.postgresql.org/message-id/flat/53a28052-f9f3-1808-fed9-460fd43035ab%402ndquadrant.com
Diffstat (limited to 'src/bin/pg_basebackup/walmethods.c')
-rw-r--r-- | src/bin/pg_basebackup/walmethods.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_basebackup/walmethods.c b/src/bin/pg_basebackup/walmethods.c index 7410af3e637..165b3a1e896 100644 --- a/src/bin/pg_basebackup/walmethods.c +++ b/src/bin/pg_basebackup/walmethods.c @@ -496,7 +496,7 @@ tar_write(Walfile f, const void *buf, size_t count) #ifdef HAVE_LIBZ else { - if (!tar_write_compressed_data((void *) buf, count, false)) + if (!tar_write_compressed_data(unconstify(void *, buf), count, false)) return -1; ((TarMethodFile *) f)->currpos += count; return count; |