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
commit393de3a09868458dfb7ef765c544c34624ea1da2 (patch)
tree606581df761e63b6e21457bbac52c25f2fc59b30 /src
parentee075fcb130f834bd5913940b97ad53fd4d21e93 (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_rewind/parsexlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_rewind/parsexlog.c b/src/bin/pg_rewind/parsexlog.c
index 3cf96abd085..715aaab42ad 100644
--- a/src/bin/pg_rewind/parsexlog.c
+++ b/src/bin/pg_rewind/parsexlog.c
@@ -229,7 +229,7 @@ findLastCheckpoint(const char *datadir, XLogRecPtr forkptr, TimeLineID tli,
}
/* XLogreader callback function, to read a WAL page */
-int
+static int
SimpleXLogPageRead(XLogReaderState *xlogreader, XLogRecPtr targetPagePtr,
int reqLen, XLogRecPtr targetRecPtr, char *readBuf,
TimeLineID *pageTLI)