From: Lennart Poettering Date: Thu, 23 Feb 2006 00:44:03 +0000 (+0000) Subject: remove two compiler warnings on OSX X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=6d8267e20db0b2900558cda3ec44517e845a0a99;p=catta remove two compiler warnings on OSX git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1161 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-daemon/simple-protocol.c b/avahi-daemon/simple-protocol.c index 8aa427b..3cac713 100644 --- a/avahi-daemon/simple-protocol.c +++ b/avahi-daemon/simple-protocol.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -470,7 +471,7 @@ int simple_protocol_setup(const AvahiPoll *poll_api) { unlink(AVAHI_SOCKET); - if (bind(server->fd, &sa, sizeof(sa)) < 0) { + if (bind(server->fd, (struct sockaddr*) &sa, sizeof(sa)) < 0) { avahi_log_warn("bind(): %s", strerror(errno)); goto fail; }