diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2012-03-16 20:03:38 +0200 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2012-03-16 20:35:00 +0200 |
commit | 598bb8cdbd9c2554bd8acfc51c9fed473a7d37bc (patch) | |
tree | 9a857066aeee564532f577acfa39f0c9bd0b019a /src/bin/psql/mbprint.c | |
parent | 359dea2859c63e73c8f3f4d769e5cf1eda2a428d (diff) |
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.
Diffstat (limited to 'src/bin/psql/mbprint.c')
-rw-r--r-- | src/bin/psql/mbprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/mbprint.c b/src/bin/psql/mbprint.c index d43973e96a0..7d379ef3b85 100644 --- a/src/bin/psql/mbprint.c +++ b/src/bin/psql/mbprint.c @@ -385,7 +385,7 @@ unsigned char * mbvalidate(unsigned char *pwcs, int encoding) { if (encoding == PG_UTF8) - mb_utf_validate((unsigned char *) pwcs); + mb_utf_validate(pwcs); else { /* |