summaryrefslogtreecommitdiffstats
path: root/avahi-daemon/simple-protocol.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-02-23 00:44:03 +0000
committerLennart Poettering <lennart@poettering.net>2006-02-23 00:44:03 +0000
commit6d8267e20db0b2900558cda3ec44517e845a0a99 (patch)
treec6517dc5efa393080752104b13f4ed97de785d16 /avahi-daemon/simple-protocol.c
parent05a83734133524435127937198fcf99bb81d3607 (diff)
remove two compiler warnings on OSX
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1161 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-daemon/simple-protocol.c')
-rw-r--r--avahi-daemon/simple-protocol.c3
1 files changed, 2 insertions, 1 deletions
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 <sys/un.h>
#include <errno.h>
#include <fcntl.h>
+#include <sys/stat.h>
#include <avahi-common/llist.h>
#include <avahi-common/malloc.h>
@@ -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;
}