Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and nivi-apple committed Mar 30, 2024
1 parent 62ab6ef commit 5b9b5e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/platform/Darwin/DnssdContexts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,6 @@ bool ResolveContext::TryReportingResultsForInterfaceIndex(uint32_t interfaceInde
return false;
}


void ResolveContext::SRPTimerExpiredCallback(chip::System::Layer * systemLayer, void * callbackContext)
{
auto sdCtx = static_cast<ResolveContext *>(callbackContext);
Expand Down
7 changes: 4 additions & 3 deletions src/platform/Darwin/DnssdImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ void LogOnFailure(const char * name, DNSServiceErrorType err)
CHIP_ERROR StartSRPTimer(uint16_t timeoutInMSecs, ResolveContext * ctx)
{
VerifyOrReturnValue(ctx != nullptr, CHIP_ERROR_INCORRECT_STATE);
return chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Milliseconds16(timeoutInMSecs), ResolveContext::SRPTimerExpiredCallback,
static_cast<void *>(ctx));
return chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Milliseconds16(timeoutInMSecs),
ResolveContext::SRPTimerExpiredCallback, static_cast<void *>(ctx));
}

class ScopedTXTRecord
Expand Down Expand Up @@ -387,7 +387,8 @@ static CHIP_ERROR Resolve(ResolveContext * sdCtx, uint32_t interfaceId, chip::In

ReturnErrorOnFailure(ResolveWithContext(sdCtx, interfaceId, type, name, kSRPDot, &sdCtx->resolveContextWithNonSRPType));

// Set the flag to start the timer for resolve on SRP domain to complete since a resolve has been requested on the SRP domain.
// Set the flag to start the timer for resolve on SRP domain to complete since a resolve has been requested on the SRP
// domain.
sdCtx->shouldStartSRPTimerForResolve = true;
}

Expand Down

0 comments on commit 5b9b5e9

Please sign in to comment.