Fix assorted inconsistent function declarations.
authorTom Lane
Tue, 7 Apr 2015 20:56:21 +0000 (16:56 -0400)
committerTom Lane
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 55b03bcd5126ab5991098da0e15796692a60c556..c67ca19cb51424bca19e64b6215d2ced9ec9b1c1 100644 (file)
@@ -294,7 +294,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, const char
 }
 #endif
 
-void
+static void
 get_restricted_token(const char *progname)
 {
 #ifdef WIN32
index 3e25c3c34c586312b9f297663905b085b589a0a4..34615fb1cd9b3df5df4630854aa1fc4b7908f9d0 100644 (file)
@@ -1147,7 +1147,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, const char
 }
 #endif
 
-void
+static void
 get_restricted_token(const char *progname)
 {
 #ifdef WIN32