Skip to content

Commit b0a5061

Browse files
committed
Rename variable
1 parent 4e7931f commit b0a5061

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Partitioning.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ bool Partitioning::partitionDrive(BlockDeviceType * blockDevice, std::vector<Par
100100
std::vector<Partition> Partitioning::readPartitions(BlockDeviceType * blockDevice){
101101
std::vector<Partition> partitions;
102102

103-
auto ret = blockDevice->init();
104-
if (ret) {
103+
auto returnCode = blockDevice->init();
104+
if (returnCode) {
105105
debugPrint("ERROR! Unable to read the Block Device.");
106106
return partitions;
107107
}
@@ -114,8 +114,8 @@ std::vector<Partition> Partitioning::readPartitions(BlockDeviceType * blockDevic
114114

115115
auto buffer = new uint8_t[buffer_size];
116116

117-
ret = blockDevice->read(buffer, 512 - buffer_size, buffer_size);
118-
if (ret) {
117+
returnCode = blockDevice->read(buffer, 512 - buffer_size, buffer_size);
118+
if (returnCode) {
119119
debugPrint("ERROR! Unable to read the Master Boot Record");
120120

121121
delete[] buffer;

0 commit comments

Comments
 (0)