|
3 | 3 | * |
4 | 4 | * Copyright (c) 2000-2008, PostgreSQL Global Development Group |
5 | 5 | * |
6 | | - * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.107 2008/05/18 06:50:08 adunstan Exp $ |
| 6 | + * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.108 2008/05/21 16:00:10 mha Exp $ |
7 | 7 | */ |
8 | 8 | #include "postgres_fe.h" |
9 | 9 |
|
@@ -1978,7 +1978,7 @@ ClosePager(FILE *pagerpipe) |
1978 | 1978 | */ |
1979 | 1979 | void |
1980 | 1980 | printTableInit(printTableContent *const content, const printTableOpt *opt, |
1981 | | - const char *title, int ncolumns, int nrows) |
| 1981 | + const char *title, const int ncolumns, const int nrows) |
1982 | 1982 | { |
1983 | 1983 | content->opt = opt; |
1984 | 1984 | content->title = title; |
@@ -2016,7 +2016,7 @@ printTableInit(printTableContent *const content, const printTableOpt *opt, |
2016 | 2016 | */ |
2017 | 2017 | void |
2018 | 2018 | printTableAddHeader(printTableContent *const content, const char *header, |
2019 | | - bool translate, char align) |
| 2019 | + const bool translate, const char align) |
2020 | 2020 | { |
2021 | 2021 | #ifndef ENABLE_NLS |
2022 | 2022 | (void) translate; /* unused parameter */ |
@@ -2053,7 +2053,7 @@ printTableAddHeader(printTableContent *const content, const char *header, |
2053 | 2053 | */ |
2054 | 2054 | void |
2055 | 2055 | printTableAddCell(printTableContent *const content, const char *cell, |
2056 | | - bool translate) |
| 2056 | + const bool translate) |
2057 | 2057 | { |
2058 | 2058 | #ifndef ENABLE_NLS |
2059 | 2059 | (void) translate; /* unused parameter */ |
@@ -2133,7 +2133,7 @@ printTableSetFooter(printTableContent *const content, const char *footer) |
2133 | 2133 | * printTableInit() again. |
2134 | 2134 | */ |
2135 | 2135 | void |
2136 | | -printTableCleanup(printTableContent *content) |
| 2136 | +printTableCleanup(printTableContent *const content) |
2137 | 2137 | { |
2138 | 2138 | free(content->headers); |
2139 | 2139 | free(content->cells); |
|
0 commit comments