Commit 546232b1 authored by Max Kellermann's avatar Max Kellermann

zeroconf-bonjour: use g_htons() instead of htons()

Fixes the gcc warning "implicit declaration of function 'htons'".
parent 42c5788d
...@@ -62,7 +62,7 @@ void init_zeroconf_osx(const char *serviceName) ...@@ -62,7 +62,7 @@ void init_zeroconf_osx(const char *serviceName)
DNSServiceErrorType error = DNSServiceRegister(&dnsReference, DNSServiceErrorType error = DNSServiceRegister(&dnsReference,
0, 0, serviceName, 0, 0, serviceName,
SERVICE_TYPE, NULL, NULL, SERVICE_TYPE, NULL, NULL,
htons(listen_port), 0, g_htons(listen_port), 0,
NULL, NULL,
dnsRegisterCallback, dnsRegisterCallback,
NULL); NULL);
......
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