From 546232b1c02d4e2c408eb9b0055068fc8204e977 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 21 Dec 2010 19:54:44 +0100 Subject: zeroconf-bonjour: use g_htons() instead of htons() Fixes the gcc warning "implicit declaration of function 'htons'". --- src/zeroconf-bonjour.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3