Skip to content

Commit 06e6573

Browse files
committed
Fix function headers not matching prototype in header file, per
compiler warnings on msvc.
1 parent 206378e commit 06e6573

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/bin/psql/print.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
55
*
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 $
77
*/
88
#include "postgres_fe.h"
99

@@ -1978,7 +1978,7 @@ ClosePager(FILE *pagerpipe)
19781978
*/
19791979
void
19801980
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)
19821982
{
19831983
content->opt = opt;
19841984
content->title = title;
@@ -2016,7 +2016,7 @@ printTableInit(printTableContent *const content, const printTableOpt *opt,
20162016
*/
20172017
void
20182018
printTableAddHeader(printTableContent *const content, const char *header,
2019-
bool translate, char align)
2019+
const bool translate, const char align)
20202020
{
20212021
#ifndef ENABLE_NLS
20222022
(void) translate; /* unused parameter */
@@ -2053,7 +2053,7 @@ printTableAddHeader(printTableContent *const content, const char *header,
20532053
*/
20542054
void
20552055
printTableAddCell(printTableContent *const content, const char *cell,
2056-
bool translate)
2056+
const bool translate)
20572057
{
20582058
#ifndef ENABLE_NLS
20592059
(void) translate; /* unused parameter */
@@ -2133,7 +2133,7 @@ printTableSetFooter(printTableContent *const content, const char *footer)
21332133
* printTableInit() again.
21342134
*/
21352135
void
2136-
printTableCleanup(printTableContent *content)
2136+
printTableCleanup(printTableContent *const content)
21372137
{
21382138
free(content->headers);
21392139
free(content->cells);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy