mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Apply unconstify() in more places
Discussion: https://www.postgresql.org/message-id/08adbe4e-38f8-2c73-55f0-591392371687%402ndquadrant.com
This commit is contained in:
@ -423,7 +423,7 @@ pg_get_keywords(PG_FUNCTION_ARGS)
|
||||
HeapTuple tuple;
|
||||
|
||||
/* cast-away-const is ugly but alternatives aren't much better */
|
||||
values[0] = (char *) ScanKeywords[funcctx->call_cntr].name;
|
||||
values[0] = unconstify(char *, ScanKeywords[funcctx->call_cntr].name);
|
||||
|
||||
switch (ScanKeywords[funcctx->call_cntr].category)
|
||||
{
|
||||
|
Reference in New Issue
Block a user