Commit 86dd677e authored by Max Kellermann's avatar Max Kellermann

ZeroconfBonjour: use htons() instead of g_htons()

parent 666f700a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment