s3:winbind: Fix bug 5626
authorVolker Lendecke <vl@samba.org>
Sun, 30 Aug 2009 09:06:14 +0000 (11:06 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 24 Feb 2010 15:25:10 +0000 (16:25 +0100)
Apparently the AIX compiler can't deal with sizeless array declarations
(cherry picked from commit dd4194bc43cc5efd7517783e5e524d252d1f82c7)

source/winbindd/winbindd_domain.c
source/winbindd/winbindd_idmap.c
source/winbindd/winbindd_locator.c

index 2e8c6175ca09087f13e9d40089bc12df02976ec7..1b76bbdf27af9ab8e76bef304b3156532ea93230 100644 (file)
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_WINBIND
 
-static const struct winbindd_child_dispatch_table domain_dispatch_table[];
-
-void setup_domain_child(struct winbindd_domain *domain,
-                       struct winbindd_child *child)
-{
-       setup_child(child, domain_dispatch_table,
-                   "log.wb", domain->name);
-
-       child->domain = domain;
-}
-
 static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
        {
                .name           = "LOOKUPSID",
@@ -117,3 +106,12 @@ static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
                .name           = NULL,
        }
 };
+
+void setup_domain_child(struct winbindd_domain *domain,
+                       struct winbindd_child *child)
+{
+       setup_child(child, domain_dispatch_table,
+                   "log.wb", domain->name);
+
+       child->domain = domain;
+}
index 94a8c78a85559af17f7ee4094462f56f04587349..ae80c8a9d7c087335d7e81baa09cc90ac7468ed2 100644 (file)
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_WINBIND
 
-static const struct winbindd_child_dispatch_table idmap_dispatch_table[];
-
 static struct winbindd_child static_idmap_child;
 
-void init_idmap_child(void)
-{
-       setup_child(&static_idmap_child,
-                   idmap_dispatch_table,
-                   "log.winbindd", "idmap");
-}
-
 struct winbindd_child *idmap_child(void)
 {
        return &static_idmap_child;
@@ -564,3 +555,10 @@ static const struct winbindd_child_dispatch_table idmap_dispatch_table[] = {
                .name           = NULL,
        }
 };
+
+void init_idmap_child(void)
+{
+       setup_child(&static_idmap_child,
+                   idmap_dispatch_table,
+                   "log.winbindd", "idmap");
+}
index b60d235f7083b2cfcf9d51f432c4653de0f3be86..07378344125381bb64fae2f3358b6fb4cb879ef9 100644 (file)
 #define DBGC_CLASS DBGC_WINBIND
 
 
-static const struct winbindd_child_dispatch_table locator_dispatch_table[];
-
 static struct winbindd_child static_locator_child;
 
-void init_locator_child(void)
-{
-       setup_child(&static_locator_child,
-                   locator_dispatch_table,
-                   "log.winbindd", "locator");
-}
-
 struct winbindd_child *locator_child(void)
 {
        return &static_locator_child;
@@ -164,3 +155,10 @@ static const struct winbindd_child_dispatch_table locator_dispatch_table[] = {
                .name           = NULL,
        }
 };
+
+void init_locator_child(void)
+{
+       setup_child(&static_locator_child,
+                   locator_dispatch_table,
+                   "log.winbindd", "locator");
+}