mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
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
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user