diff options
Diffstat (limited to 'src/common/controldata_utils.c')
-rw-r--r-- | src/common/controldata_utils.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/common/controldata_utils.c b/src/common/controldata_utils.c index 6867c03bee5..5592fe7039c 100644 --- a/src/common/controldata_utils.c +++ b/src/common/controldata_utils.c @@ -37,10 +37,10 @@ ControlFileData * get_controlfile(char *DataDir, const char *progname) { - ControlFileData *ControlFile; - int fd; - char ControlFilePath[MAXPGPATH]; - pg_crc32c crc; + ControlFileData *ControlFile; + int fd; + char ControlFilePath[MAXPGPATH]; + pg_crc32c crc; ControlFile = palloc(sizeof(ControlFileData)); snprintf(ControlFilePath, MAXPGPATH, "%s/global/pg_control", DataDir); @@ -49,8 +49,8 @@ get_controlfile(char *DataDir, const char *progname) #ifndef FRONTEND ereport(ERROR, (errcode_for_file_access(), - errmsg("could not open file \"%s\" for reading: %m", - ControlFilePath))); + errmsg("could not open file \"%s\" for reading: %m", + ControlFilePath))); #else { fprintf(stderr, _("%s: could not open file \"%s\" for reading: %s\n"), @@ -63,7 +63,7 @@ get_controlfile(char *DataDir, const char *progname) #ifndef FRONTEND ereport(ERROR, (errcode_for_file_access(), - errmsg("could not read file \"%s\": %m", ControlFilePath))); + errmsg("could not read file \"%s\": %m", ControlFilePath))); #else { fprintf(stderr, _("%s: could not read file \"%s\": %s\n"), @@ -77,8 +77,8 @@ get_controlfile(char *DataDir, const char *progname) /* Check the CRC. */ INIT_CRC32C(crc); COMP_CRC32C(crc, - (char *) ControlFile, - offsetof(ControlFileData, crc)); + (char *) ControlFile, + offsetof(ControlFileData, crc)); FIN_CRC32C(crc); if (!EQ_CRC32C(crc, ControlFile->crc)) |