From 458aa8673fd0104d1044793f84f8b2846e604727 Mon Sep 17 00:00:00 2001 From: Jeremy Schneider Date: Thu, 7 Nov 2019 00:01:07 +0000 Subject: [PATCH] Change TRUE/FALSE to true/false PostgreSQL 11 removed the TRUE/FALSE defines in commit https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=6337865f36da34e9c89aaa292f976bde6df0b065 Convert to true/false so that verifychecksum.c continues to build against newer versions of PostgreSQL. --- src/verifychecksum/verifychecksum.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/verifychecksum/verifychecksum.c b/src/verifychecksum/verifychecksum.c index d5af82d..3d70923 100644 --- a/src/verifychecksum/verifychecksum.c +++ b/src/verifychecksum/verifychecksum.c @@ -49,10 +49,10 @@ verify_page(const char *page, BlockNumber blkno, const char *filepath) { printf("%s: blkno %d, page header %x, calculated %x\n", filepath, blkno, phdr->pd_checksum, checksum); - return FALSE; + return false; } - return TRUE; + return true; } int @@ -93,13 +93,13 @@ verify_segmentfile(const char *filepath) if (corrupted > 0) { printf("%d blocks corrupted in %s.\n", corrupted, filepath); - return FALSE; + return false; } if (verbose) printf("Verified %d blocks in %s.\n", blkno, filepath); - return TRUE; + return true; } int