]> granicus.if.org Git - postgresql/commitdiff
Remove unnecessary cast causing a warning
authorGreg Stark <stark@mit.edu>
Tue, 29 Apr 2014 11:43:03 +0000 (12:43 +0100)
committerGreg Stark <stark@mit.edu>
Tue, 29 Apr 2014 11:43:03 +0000 (12:43 +0100)
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

index 0ebffff2e35316b13b5c5db88e902727860767fa..dbdad3ed1c3dc449462e6ca614b9b02d98dc765a 100644 (file)
@@ -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);