summaryrefslogtreecommitdiff
path: root/src
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
commitf97a0a2cc4bb029533db4e142a51717f24096de2 (patch)
tree15de7fcc446b42e40df1db1ee4f208a4e99ef154 /src
parent8e003bc6afd2847a8458841e8ca35b94f4a59a66 (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.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_resetxlog/pg_resetxlog.c2
1 files changed, 1 insertions, 1 deletions
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