@@ -173,7 +173,7 @@ static void SnapBuildWaitSnapshot(xl_running_xacts *running, TransactionId cutof
173
173
/* serialization functions */
174
174
static void SnapBuildSerialize (SnapBuild * builder , XLogRecPtr lsn );
175
175
static bool SnapBuildRestore (SnapBuild * builder , XLogRecPtr lsn );
176
- static void SnapBuildRestoreContents (int fd , char * dest , Size size , const char * path );
176
+ static void SnapBuildRestoreContents (int fd , void * dest , Size size , const char * path );
177
177
178
178
/*
179
179
* Allocate a new snapshot builder.
@@ -1722,7 +1722,7 @@ SnapBuildRestoreSnapshot(SnapBuildOnDisk *ondisk, const char *path,
1722
1722
fsync_fname (PG_LOGICAL_SNAPSHOTS_DIR , true);
1723
1723
1724
1724
/* read statically sized portion of snapshot */
1725
- SnapBuildRestoreContents (fd , ( char * ) ondisk , SnapBuildOnDiskConstantSize , path );
1725
+ SnapBuildRestoreContents (fd , ondisk , SnapBuildOnDiskConstantSize , path );
1726
1726
1727
1727
if (ondisk -> magic != SNAPBUILD_MAGIC )
1728
1728
ereport (ERROR ,
@@ -1742,15 +1742,15 @@ SnapBuildRestoreSnapshot(SnapBuildOnDisk *ondisk, const char *path,
1742
1742
SnapBuildOnDiskConstantSize - SnapBuildOnDiskNotChecksummedSize );
1743
1743
1744
1744
/* read SnapBuild */
1745
- SnapBuildRestoreContents (fd , ( char * ) & ondisk -> builder , sizeof (SnapBuild ), path );
1745
+ SnapBuildRestoreContents (fd , & ondisk -> builder , sizeof (SnapBuild ), path );
1746
1746
COMP_CRC32C (checksum , & ondisk -> builder , sizeof (SnapBuild ));
1747
1747
1748
1748
/* restore committed xacts information */
1749
1749
if (ondisk -> builder .committed .xcnt > 0 )
1750
1750
{
1751
1751
sz = sizeof (TransactionId ) * ondisk -> builder .committed .xcnt ;
1752
1752
ondisk -> builder .committed .xip = MemoryContextAllocZero (context , sz );
1753
- SnapBuildRestoreContents (fd , ( char * ) ondisk -> builder .committed .xip , sz , path );
1753
+ SnapBuildRestoreContents (fd , ondisk -> builder .committed .xip , sz , path );
1754
1754
COMP_CRC32C (checksum , ondisk -> builder .committed .xip , sz );
1755
1755
}
1756
1756
@@ -1759,7 +1759,7 @@ SnapBuildRestoreSnapshot(SnapBuildOnDisk *ondisk, const char *path,
1759
1759
{
1760
1760
sz = sizeof (TransactionId ) * ondisk -> builder .catchange .xcnt ;
1761
1761
ondisk -> builder .catchange .xip = MemoryContextAllocZero (context , sz );
1762
- SnapBuildRestoreContents (fd , ( char * ) ondisk -> builder .catchange .xip , sz , path );
1762
+ SnapBuildRestoreContents (fd , ondisk -> builder .catchange .xip , sz , path );
1763
1763
COMP_CRC32C (checksum , ondisk -> builder .catchange .xip , sz );
1764
1764
}
1765
1765
@@ -1882,7 +1882,7 @@ SnapBuildRestore(SnapBuild *builder, XLogRecPtr lsn)
1882
1882
* Read the contents of the serialized snapshot to 'dest'.
1883
1883
*/
1884
1884
static void
1885
- SnapBuildRestoreContents (int fd , char * dest , Size size , const char * path )
1885
+ SnapBuildRestoreContents (int fd , void * dest , Size size , const char * path )
1886
1886
{
1887
1887
int readBytes ;
1888
1888
0 commit comments