[PATCH] GcovData.cc: Remove ampersands where not needed
Ryan Long
ryan.long at oarcorp.com
Mon Aug 23 15:49:40 UTC 2021
Removed some ampersands that were left in on accident.
---
tester/covoar/GcovData.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tester/covoar/GcovData.cc b/tester/covoar/GcovData.cc
index 44928a9..59412a6 100644
--- a/tester/covoar/GcovData.cc
+++ b/tester/covoar/GcovData.cc
@@ -404,7 +404,7 @@ namespace Gcov {
// Read the gcov preamble and make sure it is the right length and has the
// magic number
- gcovFile.read( (char *) &preamble, sizeof( gcov_preamble ) );
+ gcovFile.read( (char *) preamble, sizeof( gcov_preamble ) );
if ( gcovFile.gcount() != sizeof( gcov_preamble ) ) {
std::cerr << "Error while reading file preamble" << std::endl;
return -1;
@@ -429,7 +429,7 @@ namespace Gcov {
char buffer[512];
char intBuffer[16384];
- gcovFile.read( (char *) &intBuffer, 8 );
+ gcovFile.read( (char *) intBuffer, 8 );
if ( gcovFile.gcount() != 8 ) {
std::cerr << "ERROR: Unable to read Function ID & checksum" << std::endl;
return false;
@@ -443,7 +443,7 @@ namespace Gcov {
function->setFunctionName( buffer, symbolsToAnalyze_m );
header.length -= readString( buffer, gcovFile );
function->setFileName( buffer );
- gcovFile.read( (char*) &intBuffer, 4 * header.length );
+ gcovFile.read( (char*) intBuffer, 4 * header.length );
if (gcovFile.gcount() != 4 * header.length ) {
std::cerr << "ERROR: Unable to read Function starting line number"
<< std::endl;
--
1.8.3.1
More information about the devel
mailing list