summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-04-07 16:56:21 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-04-07 16:56:21 -0400
commit6a560f5b5ff889ae252b9d8ee1f45b616fd6adbc (patch)
treedaf51efb99044e664678c7e68d219a89d4f50f71
parentdaee80f1aec7bcd98a6ce3cb5f087d38828dbc38 (diff)
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.
-rw-r--r--contrib/pg_upgrade/pg_upgrade.c2
-rw-r--r--src/bin/pg_resetxlog/pg_resetxlog.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pg_upgrade/pg_upgrade.c b/contrib/pg_upgrade/pg_upgrade.c
index 89e427503a7..35a0f4304d1 100644
--- a/contrib/pg_upgrade/pg_upgrade.c
+++ b/contrib/pg_upgrade/pg_upgrade.c
@@ -289,7 +289,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 24de764f5c9..f0296dbcd90 100644
--- a/src/bin/pg_resetxlog/pg_resetxlog.c
+++ b/src/bin/pg_resetxlog/pg_resetxlog.c
@@ -1155,7 +1155,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, const char
}
#endif
-void
+static void
get_restricted_token(const char *progname)
{
#ifdef WIN32