aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-10-10 22:30:38 +0200
committerMax Kellermann <max@duempel.org>2014-10-10 22:30:38 +0200
commit86dd677e0cac8278ae03b82399a594b1d02484a4 (patch)
treedb0c8289f719b6bbeb1eb9502266f5d8f676cd15
parent666f700a93586096e26bf29e4d63851b11b0c400 (diff)
downloadmpd-86dd677e0cac8278ae03b82399a594b1d02484a4.tar.gz
mpd-86dd677e0cac8278ae03b82399a594b1d02484a4.tar.xz
mpd-86dd677e0cac8278ae03b82399a594b1d02484a4.zip
ZeroconfBonjour: use htons() instead of g_htons()
-rw-r--r--src/zeroconf/ZeroconfBonjour.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zeroconf/ZeroconfBonjour.cxx b/src/zeroconf/ZeroconfBonjour.cxx
index 5b5de1247..8d7565e0e 100644
--- a/src/zeroconf/ZeroconfBonjour.cxx
+++ b/src/zeroconf/ZeroconfBonjour.cxx
@@ -26,10 +26,10 @@
#include "Log.hxx"
#include "Compiler.h"
-#include <glib.h>
-
#include <dns_sd.h>
+#include <arpa/inet.h>
+
static constexpr Domain bonjour_domain("bonjour");
class BonjourMonitor final : public SocketMonitor {
@@ -82,7 +82,7 @@ BonjourInit(EventLoop &loop, const char *service_name)
DNSServiceErrorType error = DNSServiceRegister(&dnsReference,
0, 0, service_name,
SERVICE_TYPE, nullptr, nullptr,
- g_htons(listen_port), 0,
+ htons(listen_port), 0,
nullptr,
dnsRegisterCallback,
nullptr);