diff options
author | Max Kellermann <max@duempel.org> | 2013-10-19 18:19:03 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-19 18:19:03 +0200 |
commit | 59f8144c50765189594d5932fc25869f9ea6e265 (patch) | |
tree | f460d9f46a99040dea402bcb3ad2d84a0e734285 /src/ZeroconfBonjour.cxx | |
parent | 5a7c931293b55a27c3f79c6951707a8d6e2a5f6c (diff) | |
download | mpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.gz mpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.xz mpd-59f8144c50765189594d5932fc25869f9ea6e265.zip |
*: use nullptr instead of NULL
Diffstat (limited to 'src/ZeroconfBonjour.cxx')
-rw-r--r-- | src/ZeroconfBonjour.cxx | 8 |
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; } |