summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2009-06-12 16:17:29 +0000
committerTom Lane2009-06-12 16:17:29 +0000
commit88b8ef757db97e2fd08a25adcc74ce167063b189 (patch)
tree933f4b819b423e4c22006e53a2d07ce6e535bf38
parent8e4a6264ceb1d4194d4a1117d449203c7f680462 (diff)
Fix several places where a function was declared static and then defined
without static. Per testing with a compiler that complains about this.
-rw-r--r--src/backend/postmaster/autovacuum.c2
-rw-r--r--src/bin/psql/describe.c2
-rw-r--r--src/bin/psql/print.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c
index 7bf2d7e3ab..9be5b661cc 100644
--- a/src/backend/postmaster/autovacuum.c
+++ b/src/backend/postmaster/autovacuum.c
@@ -2327,7 +2327,7 @@ deleted:
* Given a relation's pg_class tuple, return the AutoVacOpts portion of
* reloptions, if set; otherwise, return NULL.
*/
-AutoVacOpts *
+static AutoVacOpts *
extract_autovac_opts(HeapTuple tup, TupleDesc pg_class_desc)
{
bytea *relopts;
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index ece11fb4e1..dba95b8e9c 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -2073,7 +2073,7 @@ describeRoles(const char *pattern, bool verbose)
return true;
}
-void
+static void
add_role_attribute(PQExpBuffer buf, const char *const str)
{
if (buf->len > 0)
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c
index b1beebfc0f..7505cd4453 100644
--- a/src/bin/psql/print.c
+++ b/src/bin/psql/print.c
@@ -2170,7 +2170,7 @@ printTableCleanup(printTableContent *const content)
*
* Setup pager if required
*/
-void
+static void
IsPagerNeeded(const printTableContent *cont, const int extra_lines, FILE **fout,
bool *is_pager)
{