mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +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:
@ -117,7 +117,7 @@ compress_process(PushFilter *next, void *priv, const uint8 *data, int len)
|
||||
*/
|
||||
while (len > 0)
|
||||
{
|
||||
st->stream.next_in = (void *) data;
|
||||
st->stream.next_in = unconstify(uint8 *, data);
|
||||
st->stream.avail_in = len;
|
||||
st->stream.next_out = st->buf;
|
||||
st->stream.avail_out = st->buf_len;
|
||||
|
Reference in New Issue
Block a user