Skip to content

Commit 1c343f8

Browse files
committed
Make the registerFlags const
1 parent 63e79e4 commit 1c343f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/Darwin/DnssdImpl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ CHIP_ERROR Register(void * context, DnssdPublishCallback callback, uint32_t inte
173173
ChipLogProgress(Discovery, "Registering service %s on host %s with port %u and type: %s on interface id: %" PRIu32,
174174
StringOrNullMarker(name), StringOrNullMarker(hostname), port, StringOrNullMarker(type), interfaceId);
175175

176-
DNSServiceFlags registerFlags = kDNSServiceFlagsNoAutoRename;
176+
const DNSServiceFlags registerFlags = kDNSServiceFlagsNoAutoRename;
177177
RegisterContext * sdCtx = nullptr;
178178
if (CHIP_NO_ERROR == MdnsContexts::GetInstance().GetRegisterContextOfTypeAndName(type, name, &sdCtx))
179179
{

0 commit comments

Comments
 (0)