mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +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:
@ -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;
|
||||
|
Reference in New Issue
Block a user