]> git.meshlink.io Git - catta/commitdiff
remove two compiler warnings on OSX
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Feb 2006 00:44:03 +0000 (00:44 +0000)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Feb 2006 00:44:03 +0000 (00:44 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1161 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-daemon/simple-protocol.c

index 8aa427b86639d1fd7f1a6b683acb656e2e446902..3cac7134f5c801280fe75a485deef4e090a5c7f8 100644 (file)
@@ -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;
     }