]> git.meshlink.io Git - catta/commitdiff
* Fix specifying priviliged access group (Closes: #85)
authorTrent Lloyd <lathiat@bur.st>
Mon, 11 Dec 2006 22:35:04 +0000 (22:35 +0000)
committerTrent Lloyd <lathiat@bur.st>
Mon, 11 Dec 2006 22:35:04 +0000 (22:35 +0000)
   Thanks to delphinidae
 * Fix incorrect manual reference (Closes: #83)
   Thanks to delphinidae
 * Fix incorrect assert() in client-publish-service.c (Closes: #79)
   Thanks to tedp
 * Fix builds on < 2.6.19 (temporary fix, pending possible "better" solution)

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1337 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/iface-linux.c
configure.ac
examples/client-publish-service.c
man/avahi-dnsconfd.8.xml.in

index a97597631d3266a47789fc67fe251a7cb6ba2d79..91fac65437c05b4bcd4752a3ec44c61771bee83b 100644 (file)
 
 #include <avahi-common/malloc.h>
 
-#include <linux/if_addr.h>
 #ifndef IFLA_RTA
+#include <linux/if_addr.h>
 #define IFLA_RTA(r)  ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
 #endif
 
 #ifndef IFA_RTA
+#include <linux/if_addr.h>
 #define IFA_RTA(r)  ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
 #endif
 
index fe26066a689393868cab07f1aed28208c3934c5a..f2dd5f2ca38b7bcc1e4ce4d20b3b59ac36fac1f4 100644 (file)
@@ -715,10 +715,10 @@ AC_SUBST(AVAHI_GROUP)
 AC_DEFINE_UNQUOTED(AVAHI_GROUP,"$AVAHI_GROUP", [Group for Avahi])
 
 AC_ARG_WITH(avahi_priv_access_group,AS_HELP_STRING([--with-avahi-priv-access-group=<group>],[Priviliged access group for Avahi clients (netdev)]))
-if test -z "$with_priv_access_group" ; then
+if test -z "$with_avahi_priv_access_group" ; then
     AVAHI_PRIV_ACCESS_GROUP=netdev
 else
-    AVAHI_PRIV_ACCESS_GROUP=$with_priv_access_group
+    AVAHI_PRIV_ACCESS_GROUP=$with_avahi_priv_access_group
 fi
 AC_SUBST(AVAHI_PRIV_ACCESS_GROUP)
 AC_DEFINE_UNQUOTED(AVAHI_PRIV_ACCESS_GROUP,"$AVAHI_PRIV_ACCESS_GROUP", [Privileged access group for Avahi clients])
index 66a59de04fc803a27758e80110f275e9dfadf80e..94dcd1e9b060cb5bad69fd522af494666eeea6c3 100644 (file)
@@ -44,7 +44,7 @@ static char *name = NULL;
 static void create_services(AvahiClient *c);
 
 static void entry_group_callback(AvahiEntryGroup *g, AvahiEntryGroupState state, AVAHI_GCC_UNUSED void *userdata) {
-    assert(g == group);
+    assert(g == group || group == NULL);
 
     /* Called whenever the entry group state changes */
 
index 454afac8f6970afa8e783c46f5b65ae471901168..c74e1bab93f93887effc7692db7fbe48d5447904 100644 (file)
@@ -92,7 +92,7 @@
        
        <section name="See also">
          <p>
-        <manref name="avahi-daemon" section="8"/>, <manref name="dnsconfd.action" section="8"/>
+        <manref name="avahi-daemon" section="8"/>, <manref name="avahi-dnsconfd.action" section="8"/>
          </p>
        </section>