1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-05 07:41:25 +03:00

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.
This commit is contained in:
Tom Lane
2015-04-07 16:56:21 -04:00
parent daee80f1ae
commit 6a560f5b5f
2 changed files with 2 additions and 2 deletions

View File

@@ -289,7 +289,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, const char
} }
#endif #endif
void static void
get_restricted_token(const char *progname) get_restricted_token(const char *progname)
{ {
#ifdef WIN32 #ifdef WIN32

View File

@@ -1155,7 +1155,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, const char
} }
#endif #endif
void static void
get_restricted_token(const char *progname) get_restricted_token(const char *progname)
{ {
#ifdef WIN32 #ifdef WIN32