1
0
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:
Peter Eisentraut
2012-03-16 20:03:38 +02:00
parent 359dea2859
commit 598bb8cdbd
3 changed files with 5 additions and 5 deletions

View File

@ -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