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/backend/tcop/postgres.c | |
parent | cf40dc65b676c8df1ee12f060b40f0e37a183e04 (diff) | |
download | postgresql-37d9916020286caec810f4de61fbd0de3568454d.tar.gz postgresql-37d9916020286caec810f4de61fbd0de3568454d.zip |
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/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 36cfd507b2e..8b4d94c9a13 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -1767,7 +1767,7 @@ exec_bind_message(StringInfo input_message) * trailing null. This is grotty but is a big win when * dealing with very large parameter strings. */ - pbuf.data = (char *) pvalue; + pbuf.data = unconstify(char *, pvalue); pbuf.maxlen = plength + 1; pbuf.len = plength; pbuf.cursor = 0; |