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

Fixes the gcc warning "implicit declaration of function 'htons'".
This commit is contained in:
Max Kellermann 2010-12-21 19:54:44 +01:00
parent 42c5788de3
commit 546232b1c0
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ void init_zeroconf_osx(const char *serviceName)
DNSServiceErrorType error = DNSServiceRegister(&dnsReference,
0, 0, serviceName,
SERVICE_TYPE, NULL, NULL,
htons(listen_port), 0,
g_htons(listen_port), 0,
NULL,
dnsRegisterCallback,
NULL);