Skip to content

Commit 393de3a

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 ee075fc commit 393de3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_rewind/parsexlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ findLastCheckpoint(const char *datadir, XLogRecPtr forkptr, TimeLineID tli,
229229
}
230230

231231
/* XLogreader callback function, to read a WAL page */
232-
int
232+
static int
233233
SimpleXLogPageRead(XLogReaderState *xlogreader, XLogRecPtr targetPagePtr,
234234
int reqLen, XLogRecPtr targetRecPtr, char *readBuf,
235235
TimeLineID *pageTLI)

0 commit comments

Comments
 (0)