From f97a0a2cc4bb029533db4e142a51717f24096de2 Mon Sep 17 00:00:00 2001 From: Tom Lane <tgl@sss.pgh.pa.us> Date: Tue, 7 Apr 2015 16:56:21 -0400 Subject: [PATCH] Fix assorted inconsistent function declarations. 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 | 2 +- src/bin/pg_resetxlog/pg_resetxlog.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/pg_upgrade/pg_upgrade.c b/contrib/pg_upgrade/pg_upgrade.c index 430e74e5f95..0dd7de6337d 100644 --- a/contrib/pg_upgrade/pg_upgrade.c +++ b/contrib/pg_upgrade/pg_upgrade.c @@ -293,7 +293,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, const char } #endif -void +static void get_restricted_token(const char *progname) { #ifdef WIN32 diff --git a/src/bin/pg_resetxlog/pg_resetxlog.c b/src/bin/pg_resetxlog/pg_resetxlog.c index 1ade239e11a..5aa6b6c5e3b 100644 --- a/src/bin/pg_resetxlog/pg_resetxlog.c +++ b/src/bin/pg_resetxlog/pg_resetxlog.c @@ -1191,7 +1191,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, const char } #endif -void +static void get_restricted_token(const char *progname) { #ifdef WIN32