aboutsummaryrefslogtreecommitdiffstats
path: root/src/zeroconf-bonjour.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-12-21 19:54:44 +0100
committerMax Kellermann <max@duempel.org>2010-12-21 20:21:20 +0100
commit546232b1c02d4e2c408eb9b0055068fc8204e977 (patch)
tree928ff6053f5b33e34be967dccedab9e45c4d622c /src/zeroconf-bonjour.c
parent42c5788de3f24e5f3233791d80a8b12c55d3817b (diff)
downloadmpd-546232b1c02d4e2c408eb9b0055068fc8204e977.tar.gz
mpd-546232b1c02d4e2c408eb9b0055068fc8204e977.tar.xz
mpd-546232b1c02d4e2c408eb9b0055068fc8204e977.zip
zeroconf-bonjour: use g_htons() instead of htons()
Fixes the gcc warning "implicit declaration of function 'htons'".
Diffstat (limited to 'src/zeroconf-bonjour.c')
-rw-r--r--src/zeroconf-bonjour.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zeroconf-bonjour.c b/src/zeroconf-bonjour.c
index 4e06319e7..6ad2a2bac 100644
--- a/src/zeroconf-bonjour.c
+++ b/src/zeroconf-bonjour.c
@@ -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);