Fix function headers not matching prototype in header file, per

compiler warnings on msvc.
This commit is contained in:
Magnus Hagander 2008-05-21 16:00:10 +00:00
parent 206378e4ab
commit 06e6573d57
1 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
* *
* Copyright (c) 2000-2008, PostgreSQL Global Development Group * Copyright (c) 2000-2008, PostgreSQL Global Development Group
* *
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.107 2008/05/18 06:50:08 adunstan Exp $ * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.108 2008/05/21 16:00:10 mha Exp $
*/ */
#include "postgres_fe.h" #include "postgres_fe.h"
@ -1978,7 +1978,7 @@ ClosePager(FILE *pagerpipe)
*/ */
void void
printTableInit(printTableContent *const content, const printTableOpt *opt, printTableInit(printTableContent *const content, const printTableOpt *opt,
const char *title, int ncolumns, int nrows) const char *title, const int ncolumns, const int nrows)
{ {
content->opt = opt; content->opt = opt;
content->title = title; content->title = title;
@ -2016,7 +2016,7 @@ printTableInit(printTableContent *const content, const printTableOpt *opt,
*/ */
void void
printTableAddHeader(printTableContent *const content, const char *header, printTableAddHeader(printTableContent *const content, const char *header,
bool translate, char align) const bool translate, const char align)
{ {
#ifndef ENABLE_NLS #ifndef ENABLE_NLS
(void) translate; /* unused parameter */ (void) translate; /* unused parameter */
@ -2053,7 +2053,7 @@ printTableAddHeader(printTableContent *const content, const char *header,
*/ */
void void
printTableAddCell(printTableContent *const content, const char *cell, printTableAddCell(printTableContent *const content, const char *cell,
bool translate) const bool translate)
{ {
#ifndef ENABLE_NLS #ifndef ENABLE_NLS
(void) translate; /* unused parameter */ (void) translate; /* unused parameter */
@ -2133,7 +2133,7 @@ printTableSetFooter(printTableContent *const content, const char *footer)
* printTableInit() again. * printTableInit() again.
*/ */
void void
printTableCleanup(printTableContent *content) printTableCleanup(printTableContent *const content)
{ {
free(content->headers); free(content->headers);
free(content->cells); free(content->cells);