]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix assorted inconsistent function declarations.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 7 Apr 2015 20:56:21 +0000 (16:56 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 7 Apr 2015 20:56:21 +0000 (16:56 -0400)
While gcc doesn't complain if you declare a function "static" and then
define it not-static, other compilers do; and in any case the code is
highly misleading this way.  Add the missing "static" keywords to a
couple of recent patches.  Per buildfarm member pademelon.

contrib/pg_upgrade/pg_upgrade.c
src/bin/pg_resetxlog/pg_resetxlog.c

index b1156813d3eeef74fea5c0547b7f31018430666b..62764f43d332a814a09426486fd9d91bd20690fb 100644 (file)
@@ -259,7 +259,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, const char
 }
 #endif
 
-void
+static void
 get_restricted_token(const char *progname)
 {
 #ifdef WIN32
index 02f5993bb0d8b919e75c35ffb69355b8c9f50429..e8ae2aeacb2628388bc7b42c58994af0ac90a8f5 100644 (file)
@@ -1149,7 +1149,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, const char
 }
 #endif
 
-void
+static void
 get_restricted_token(const char *progname)
 {
 #ifdef WIN32