Skip to content

Commit bfd06a7

Browse files
committed
Fix several places where a function was declared static and then defined
without static. Per testing with a compiler that complains about this.
1 parent 63e183c commit bfd06a7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/backend/postmaster/autovacuum.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
*
5656
*
5757
* IDENTIFICATION
58-
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.98 2009/06/11 14:49:00 momjian Exp $
58+
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.99 2009/06/12 16:17:29 tgl Exp $
5959
*
6060
*-------------------------------------------------------------------------
6161
*/
@@ -2327,7 +2327,7 @@ do_autovacuum(void)
23272327
* Given a relation's pg_class tuple, return the AutoVacOpts portion of
23282328
* reloptions, if set; otherwise, return NULL.
23292329
*/
2330-
AutoVacOpts *
2330+
static AutoVacOpts *
23312331
extract_autovac_opts(HeapTuple tup, TupleDesc pg_class_desc)
23322332
{
23332333
bytea *relopts;

src/bin/psql/describe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
1010
*
11-
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.216 2009/06/11 14:49:08 momjian Exp $
11+
* $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.217 2009/06/12 16:17:29 tgl Exp $
1212
*/
1313
#include "postgres_fe.h"
1414

@@ -2073,7 +2073,7 @@ describeRoles(const char *pattern, bool verbose)
20732073
return true;
20742074
}
20752075

2076-
void
2076+
static void
20772077
add_role_attribute(PQExpBuffer buf, const char *const str)
20782078
{
20792079
if (buf->len > 0)

src/bin/psql/print.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.115 2009/06/11 14:49:08 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.116 2009/06/12 16:17:29 tgl Exp $
77
*/
88
#include "postgres_fe.h"
99

@@ -2170,7 +2170,7 @@ printTableCleanup(printTableContent *const content)
21702170
*
21712171
* Setup pager if required
21722172
*/
2173-
void
2173+
static void
21742174
IsPagerNeeded(const printTableContent *cont, const int extra_lines, FILE **fout,
21752175
bool *is_pager)
21762176
{

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