From dbe31616c9be7380b8a88cdfbeaa68dbdcdebc36 Mon Sep 17 00:00:00 2001 From: Greg Stark Date: Tue, 29 Apr 2014 12:43:03 +0100 Subject: [PATCH] Remove unnecessary cast causing a warning Incidentally, I reversed the two names in the earlier commit. The original author was Sergey Muraviov and the reviewer was Emre Hasegeli. --- src/bin/psql/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index 0ebffff2e3..dbdad3ed1c 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -1350,7 +1350,7 @@ print_aligned_vertical(const printTableContent *cont, FILE *fout) { int swidth, twidth = hwidth + 1; fputs(hline? format->header_nl_left: " ", fout); - strlen_max_width((char *) hlineptr[hline].ptr, &twidth, + strlen_max_width(hlineptr[hline].ptr, &twidth, encoding); fprintf(fout, "%-s", hlineptr[hline].ptr); -- 2.40.0