fix variable shadowing

This commit is contained in:
Robin Müller 2023-06-30 14:59:24 +02:00
parent 64922367e4
commit f8fae1ac62
Signed by: muellerr
GPG Key ID: A649FB78196E3849
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ ReturnValue_t DleParser::parseRingBuf(size_t& readSize) {
size_t decodedLen = 0; size_t decodedLen = 0;
size_t dummy = 0; size_t dummy = 0;
ReturnValue_t result = result =
decoder.decode(&encodedBuf.first[stxIdx], availableData - stxIdx, &dummy, decoder.decode(&encodedBuf.first[stxIdx], availableData - stxIdx, &dummy,
decodedBuf.first, decodedBuf.second, &decodedLen); decodedBuf.first, decodedBuf.second, &decodedLen);
if (result == returnvalue::OK) { if (result == returnvalue::OK) {

View File

@ -99,7 +99,7 @@ ReturnValue_t CServiceHealthCommanding::prepareCommand(CommandMessage *message,
return CommandingServiceBase::EXECUTION_COMPLETE; return CommandingServiceBase::EXECUTION_COMPLETE;
} }
case (Subservice::COMMAND_ANNOUNCE_HEALTH_ALL): { case (Subservice::COMMAND_ANNOUNCE_HEALTH_ALL): {
ReturnValue_t result = iterateHealthTable(true); result = iterateHealthTable(true);
if (result == returnvalue::OK) { if (result == returnvalue::OK) {
reportAllHealth = true; reportAllHealth = true;
return EXECUTION_COMPLETE; return EXECUTION_COMPLETE;