@@ -1468,7 +1468,7 @@ getlen(Tuplestorestate *state, bool eofOK)
1468
1468
unsigned int len ;
1469
1469
size_t nbytes ;
1470
1470
1471
- nbytes = BufFileRead (state -> myfile , ( void * ) & len , sizeof (len ));
1471
+ nbytes = BufFileRead (state -> myfile , & len , sizeof (len ));
1472
1472
if (nbytes == sizeof (len ))
1473
1473
return len ;
1474
1474
if (nbytes != 0 || !eofOK )
@@ -1512,10 +1512,10 @@ writetup_heap(Tuplestorestate *state, void *tup)
1512
1512
/* total on-disk footprint: */
1513
1513
unsigned int tuplen = tupbodylen + sizeof (int );
1514
1514
1515
- BufFileWrite (state -> myfile , ( void * ) & tuplen , sizeof (tuplen ));
1516
- BufFileWrite (state -> myfile , ( void * ) tupbody , tupbodylen );
1515
+ BufFileWrite (state -> myfile , & tuplen , sizeof (tuplen ));
1516
+ BufFileWrite (state -> myfile , tupbody , tupbodylen );
1517
1517
if (state -> backward ) /* need trailing length word? */
1518
- BufFileWrite (state -> myfile , ( void * ) & tuplen , sizeof (tuplen ));
1518
+ BufFileWrite (state -> myfile , & tuplen , sizeof (tuplen ));
1519
1519
1520
1520
FREEMEM (state , GetMemoryChunkSpace (tuple ));
1521
1521
heap_free_minimal_tuple (tuple );
@@ -1533,15 +1533,15 @@ readtup_heap(Tuplestorestate *state, unsigned int len)
1533
1533
USEMEM (state , GetMemoryChunkSpace (tuple ));
1534
1534
/* read in the tuple proper */
1535
1535
tuple -> t_len = tuplen ;
1536
- nread = BufFileRead (state -> myfile , ( void * ) tupbody , tupbodylen );
1536
+ nread = BufFileRead (state -> myfile , tupbody , tupbodylen );
1537
1537
if (nread != (size_t ) tupbodylen )
1538
1538
ereport (ERROR ,
1539
1539
(errcode_for_file_access (),
1540
1540
errmsg ("could not read from tuplestore temporary file: read only %zu of %zu bytes" ,
1541
1541
nread , (size_t ) tupbodylen )));
1542
1542
if (state -> backward ) /* need trailing length word? */
1543
1543
{
1544
- nread = BufFileRead (state -> myfile , ( void * ) & tuplen , sizeof (tuplen ));
1544
+ nread = BufFileRead (state -> myfile , & tuplen , sizeof (tuplen ));
1545
1545
if (nread != sizeof (tuplen ))
1546
1546
ereport (ERROR ,
1547
1547
(errcode_for_file_access (),
0 commit comments