Content-Length: 285162 | pFad | http://github.com/postgrespro/postgres/commit/c68b06356dd75230df18a763b87736f717e13b5c

F0 Fix assorted inconsistent function declarations. · postgrespro/postgres@c68b063 · GitHub
Skip to content

Commit c68b063

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 53e97a6 commit c68b063

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
@@ -259,7 +259,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, const char
259259
}
260260
#endif
261261

262-
void
262+
static void
263263
get_restricted_token(const char *progname)
264264
{
265265
#ifdef WIN32

src/bin/pg_resetxlog/pg_resetxlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, const char
11491149
}
11501150
#endif
11511151

1152-
void
1152+
static void
11531153
get_restricted_token(const char *progname)
11541154
{
11551155
#ifdef WIN32

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/c68b06356dd75230df18a763b87736f717e13b5c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy