postgres.git / summary / log / commit / refs

commit    393de3a09868458dfb7ef765c544c34624ea1da2
Author:   Tom Lane <tgl@sss.pgh.pa.us>
Date:     Tue Apr 07 20:56:21 2015 +0000
First released in: 9.5.0, 9.0.20, 9.1.16, 9.2.11, 9.3.7, 9.4.2

    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.


src/bin/pg_rewind/parsexlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) [parent: ee075fcb130f]