From 86dd677e0cac8278ae03b82399a594b1d02484a4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 Oct 2014 22:30:38 +0200 Subject: ZeroconfBonjour: use htons() instead of g_htons() --- src/zeroconf/ZeroconfBonjour.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/zeroconf/ZeroconfBonjour.cxx') 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 - #include +#include + 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); -- cgit v1.2.3