diff --git a/src/platform/Darwin/DnssdContexts.cpp b/src/platform/Darwin/DnssdContexts.cpp index d7a254c4aae505..eea31f31874657 100644 --- a/src/platform/Darwin/DnssdContexts.cpp +++ b/src/platform/Darwin/DnssdContexts.cpp @@ -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(callbackContext); diff --git a/src/platform/Darwin/DnssdImpl.cpp b/src/platform/Darwin/DnssdImpl.cpp index 88a446066a5ee9..8a37b7492c28f9 100644 --- a/src/platform/Darwin/DnssdImpl.cpp +++ b/src/platform/Darwin/DnssdImpl.cpp @@ -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(ctx)); + return chip::DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Milliseconds16(timeoutInMSecs), + ResolveContext::SRPTimerExpiredCallback, static_cast(ctx)); } class ScopedTXTRecord @@ -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; }