Skip to content

Commit 1a3027e

Browse files
Apply suggestions from code review
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
1 parent 96b68fe commit 1a3027e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/platform/Darwin/DnssdImpl.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ void LogOnFailure(const char * name, DNSServiceErrorType err)
7878
*/
7979
CHIP_ERROR StartSRPTimer(uint16_t timeoutInMSecs, ResolveContext * ctx)
8080
{
81-
// Check to see if an user default value exists for the SRP timeout. If it does, override the timeoutInMSecs with user default
81+
// Check to see if a user default value exists for the SRP timeout. If it does, override the timeoutInMSecs with user default
8282
// value. To override the timeout value, use ` defaults write org.csa-iot.matter.darwin SRPTimeoutInMSecsOverride
83-
// <timeoutinMsecs>` See UserDefaults.mm for details
84-
uint16_t userDefaultSRPTimeoutInMsecs = static_cast<uint16_t>(getUserDefaultDnssdSRPTimeoutInMSecs());
83+
// <timeoutinMsecs>` See UserDefaults.mm for details.
84+
uint16_t userDefaultSRPTimeoutInMsecs = getUserDefaultDnssdSRPTimeoutInMSecs();
8585
if (userDefaultSRPTimeoutInMsecs)
8686
{
8787
timeoutInMSecs = userDefaultSRPTimeoutInMsecs;

src/platform/Darwin/UserDefaults.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/*
2-
*
32
* Copyright (c) 2024 Project CHIP Authors
43
*
54
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -20,7 +19,7 @@
2019
namespace chip {
2120
namespace DeviceLayer {
2221

23-
uint16_t getUserDefaultDnssdSRPTimeoutInMSecs();
22+
uint16_t GetUserDefaultDnssdSRPTimeoutInMSecs();
2423

2524
} // namespace DeviceLayer
2625
} // namespace chip

0 commit comments

Comments
 (0)