diff options
Diffstat (limited to 'src/backend/utils')
-rw-r--r-- | src/backend/utils/cache/relmapper.c | 4 | ||||
-rw-r--r-- | src/backend/utils/error/jsonlog.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/cache/relmapper.c b/src/backend/utils/cache/relmapper.c index 7dcbf1d5c5c..abf89f0776e 100644 --- a/src/backend/utils/cache/relmapper.c +++ b/src/backend/utils/cache/relmapper.c @@ -854,7 +854,7 @@ read_relmap_file(RelMapFile *map, char *dbpath, bool lock_held, int elevel) /* verify the CRC */ INIT_CRC32C(crc); - COMP_CRC32C(crc, (char *) map, offsetof(RelMapFile, crc)); + COMP_CRC32C(crc, map, offsetof(RelMapFile, crc)); FIN_CRC32C(crc); if (!EQ_CRC32C(crc, map->crc)) @@ -910,7 +910,7 @@ write_relmap_file(RelMapFile *newmap, bool write_wal, bool send_sinval, elog(ERROR, "attempt to write bogus relation mapping"); INIT_CRC32C(newmap->crc); - COMP_CRC32C(newmap->crc, (char *) newmap, offsetof(RelMapFile, crc)); + COMP_CRC32C(newmap->crc, newmap, offsetof(RelMapFile, crc)); FIN_CRC32C(newmap->crc); /* diff --git a/src/backend/utils/error/jsonlog.c b/src/backend/utils/error/jsonlog.c index 6533f1d6888..549e0f48ee8 100644 --- a/src/backend/utils/error/jsonlog.c +++ b/src/backend/utils/error/jsonlog.c @@ -206,7 +206,7 @@ write_jsonlog(ErrorData *edata) /* Error severity */ if (edata->elevel) appendJSONKeyValue(&buf, "error_severity", - (char *) error_severity(edata->elevel), true); + error_severity(edata->elevel), true); /* SQL state code */ if (edata->sqlerrcode) |