From: Greg Stark Date: Tue, 29 Apr 2014 11:43:03 +0000 (+0100) Subject: Remove unnecessary cast causing a warning X-Git-Tag: REL9_4_BETA1~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dbe31616c9be7380b8a88cdfbeaa68dbdcdebc36;p=postgresql 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. --- 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);