@@ -131,7 +131,7 @@ std::shared_ptr<uint32_t> GetCounterHolder(const char * name)
131
131
return std::make_shared<uint32_t >(0 );
132
132
}
133
133
134
- bool IsSRPType (const char * domain)
134
+ bool IsSRPDomain (const char * domain)
135
135
{
136
136
return strcmp (kSRPDot , domain) == 0 ;
137
137
}
@@ -164,7 +164,7 @@ CHIP_ERROR StartSRPTimer(uint16_t timeoutInMSecs, ResolveContext * ctx)
164
164
{
165
165
VerifyOrReturnValue (ctx != nullptr , CHIP_ERROR_INCORRECT_STATE);
166
166
return DeviceLayer::SystemLayer ().StartTimer (System::Clock::Milliseconds16 (timeoutInMSecs), SRPTimerExpiredCallback,
167
- reinterpret_cast <void *>(ctx));
167
+ static_cast <void *>(ctx));
168
168
}
169
169
170
170
/* *
@@ -174,7 +174,7 @@ CHIP_ERROR StartSRPTimer(uint16_t timeoutInMSecs, ResolveContext * ctx)
174
174
*/
175
175
void CancelSRPTimer (ResolveContext * ctx)
176
176
{
177
- DeviceLayer::SystemLayer ().CancelTimer (SRPTimerExpiredCallback, reinterpret_cast <void *>(ctx));
177
+ DeviceLayer::SystemLayer ().CancelTimer (SRPTimerExpiredCallback, static_cast <void *>(ctx));
178
178
}
179
179
180
180
Global<MdnsContexts> MdnsContexts::sInstance ;
@@ -285,7 +285,7 @@ static void OnGetAddrInfo(DNSServiceRef sdRef, DNSServiceFlags flags, uint32_t i
285
285
286
286
if (kDNSServiceErr_NoError == err)
287
287
{
288
- InterfaceKey interfaceKey = { interfaceId, hostname, contextWithType->isSRPType };
288
+ InterfaceKey interfaceKey = { interfaceId, hostname, contextWithType->isSRP };
289
289
sdCtx->OnNewAddress (interfaceKey, address);
290
290
291
291
// Set the flag to start the timer for resolve on SRP domain to complete if the key has the SRP type requested flag set to
@@ -339,7 +339,7 @@ static void GetAddrInfo(ResolveContext * sdCtx)
339
339
if (!interface.second .isDNSLookUpRequested )
340
340
{
341
341
ResolveContextWithType * contextWithType =
342
- (interface.first .isSRPTypeRequested ) ? &sdCtx->resolveContextWithSRPType : &sdCtx->resolveContextWithNonSRPType ;
342
+ (interface.first .isSRPResult ) ? &sdCtx->resolveContextWithSRPType : &sdCtx->resolveContextWithNonSRPType ;
343
343
auto err = DNSServiceGetAddrInfo (&sdRefCopy, kGetAddrInfoFlags , interfaceId, protocol, hostname, OnGetAddrInfo,
344
344
contextWithType);
345
345
VerifyOrReturn (kDNSServiceErr_NoError == err, sdCtx->Finalize (err));
0 commit comments