Skip to content

Commit f97a0a2

Browse files
committed
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.
1 parent 8e003bc commit f97a0a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/pg_upgrade/pg_upgrade.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, const char
293293
}
294294
#endif
295295

296-
void
296+
static void
297297
get_restricted_token(const char *progname)
298298
{
299299
#ifdef WIN32

src/bin/pg_resetxlog/pg_resetxlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, const char
11911191
}
11921192
#endif
11931193

1194-
void
1194+
static void
11951195
get_restricted_token(const char *progname)
11961196
{
11971197
#ifdef WIN32

0 commit comments

Comments
 (0)