mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
psql: Remove inappropriate const qualifiers
Since mbvalidate() can alter the string it validates, having the callers claim that the strings they accept are const is inappropriate.
This commit is contained in:
@ -2122,7 +2122,7 @@ printTableInit(printTableContent *const content, const printTableOpt *opt,
|
||||
* column.
|
||||
*/
|
||||
void
|
||||
printTableAddHeader(printTableContent *const content, const char *header,
|
||||
printTableAddHeader(printTableContent *const content, char *header,
|
||||
const bool translate, const char align)
|
||||
{
|
||||
#ifndef ENABLE_NLS
|
||||
@ -2162,7 +2162,7 @@ printTableAddHeader(printTableContent *const content, const char *header,
|
||||
* Note: Automatic freeing of translatable strings is not supported.
|
||||
*/
|
||||
void
|
||||
printTableAddCell(printTableContent *const content, const char *cell,
|
||||
printTableAddCell(printTableContent *const content, char *cell,
|
||||
const bool translate, const bool mustfree)
|
||||
{
|
||||
#ifndef ENABLE_NLS
|
||||
|
Reference in New Issue
Block a user