diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index 05d4b3162c..c08d5af6bb 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -98,7 +98,7 @@ const printTextFormat pg_asciiformat_old = }; /* Default unicode linestyle format */ -const printTextFormat pg_utf8format; +printTextFormat pg_utf8format; typedef struct unicodeStyleRowFormat { @@ -3410,7 +3410,7 @@ get_line_style(const printTableOpt *opt) void refresh_utf8format(const printTableOpt *opt) { - printTextFormat *popt = (printTextFormat *) &pg_utf8format; + printTextFormat *popt = &pg_utf8format; const unicodeStyleBorderFormat *border; const unicodeStyleRowFormat *header; diff --git a/src/bin/psql/print.h b/src/bin/psql/print.h index fd56598426..15a365e7d2 100644 --- a/src/bin/psql/print.h +++ b/src/bin/psql/print.h @@ -164,7 +164,7 @@ typedef struct printQueryOpt extern const printTextFormat pg_asciiformat; extern const printTextFormat pg_asciiformat_old; -extern const printTextFormat pg_utf8format; +extern printTextFormat pg_utf8format; /* ideally would be const, but... */ extern void disable_sigpipe_trap(void);