Fix several places where a function was declared static and then defined
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 12 Jun 2009 16:17:29 +0000 (16:17 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 12 Jun 2009 16:17:29 +0000 (16:17 +0000)
without static.  Per testing with a compiler that complains about this.

src/backend/postmaster/autovacuum.c
src/bin/psql/describe.c
src/bin/psql/print.c

index 7bf2d7e3ab2f95bfe58cf42d76d25e242663810f..9be5b661cccdea01b0be8a1eb47f6e7a461c435a 100644 (file)
@@ -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;
index ece11fb4e18ce36216b6686eb516805fa2550061..dba95b8e9c6ad918b328939d089c8949cc68447a 100644 (file)
@@ -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)
index b1beebfc0f98cbea5abb9d0543d50d514c964d61..7505cd44537b27cf62f867e4191a33a5a2a1d43e 100644 (file)
@@ -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)
 {