aboutsummaryrefslogtreecommitdiffstats
path: root/src/ZeroconfBonjour.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ZeroconfBonjour.cxx')
-rw-r--r--src/ZeroconfBonjour.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ZeroconfBonjour.cxx b/src/ZeroconfBonjour.cxx
index 4c3efe5b5..73e84fbc2 100644
--- a/src/ZeroconfBonjour.cxx
+++ b/src/ZeroconfBonjour.cxx
@@ -82,11 +82,11 @@ BonjourInit(EventLoop &loop, const char *service_name)
DNSServiceRef dnsReference;
DNSServiceErrorType error = DNSServiceRegister(&dnsReference,
0, 0, service_name,
- SERVICE_TYPE, NULL, NULL,
+ SERVICE_TYPE, nullptr, nullptr,
g_htons(listen_port), 0,
- NULL,
+ nullptr,
dnsRegisterCallback,
- NULL);
+ nullptr);
if (error != kDNSServiceErr_NoError) {
LogError(bonjour_domain,
@@ -94,7 +94,7 @@ BonjourInit(EventLoop &loop, const char *service_name)
if (dnsReference) {
DNSServiceRefDeallocate(dnsReference);
- dnsReference = NULL;
+ dnsReference = nullptr;
}
return;
}