@@ -374,7 +374,8 @@ static void OnResolve(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t inter
374
374
}
375
375
}
376
376
377
- static CHIP_ERROR ResolveWithContext (ResolveContext * sdCtx, uint32_t interfaceId, const char * type, const char * name, const char * domain, ResolveContextWithType * contextWithType)
377
+ static CHIP_ERROR ResolveWithContext (ResolveContext * sdCtx, uint32_t interfaceId, const char * type, const char * name,
378
+ const char * domain, ResolveContextWithType * contextWithType)
378
379
{
379
380
auto sdRef = sdCtx->serviceRef ; // Mandatory copy because of kDNSServiceFlagsShareConnection
380
381
@@ -396,7 +397,9 @@ static CHIP_ERROR Resolve(ResolveContext * sdCtx, uint32_t interfaceId, chip::In
396
397
// Otherwise we will try to resolve using both the local domain and the SRP domain.
397
398
if (domain != nullptr )
398
399
{
399
- ReturnErrorOnFailure (ResolveWithContext (sdCtx, interfaceId, type, name, domain, IsSRPType (domain) ? &sdCtx->resolveContextWithSRPType : &sdCtx->resolveContextWithNonSRPType ));
400
+ ReturnErrorOnFailure (
401
+ ResolveWithContext (sdCtx, interfaceId, type, name, domain,
402
+ IsSRPType (domain) ? &sdCtx->resolveContextWithSRPType : &sdCtx->resolveContextWithNonSRPType ));
400
403
sdCtx->shoulStartSRPTimerForResolve = false ;
401
404
}
402
405
else
@@ -574,8 +577,10 @@ CHIP_ERROR ChipDnssdResolve(DnssdService * service, chip::Inet::InterfaceId inte
574
577
575
578
if (BrowseContext::sContextDispatchingSuccess != nullptr )
576
579
{
577
- for (size_t i = 0 ; i < BrowseContext::sDispatchedServices ->size (); ++i) {
578
- if (service == &BrowseContext::sDispatchedServices ->at (i)) {
580
+ for (size_t i = 0 ; i < BrowseContext::sDispatchedServices ->size (); ++i)
581
+ {
582
+ if (service == &BrowseContext::sDispatchedServices ->at (i))
583
+ {
579
584
domain = BrowseContext::sContextDispatchingSuccess ->services [i].second .c_str ();
580
585
break ;
581
586
}
0 commit comments