s3:winbind: Fix bug 5626
authorVolker Lendecke <vl@samba.org>
Sun, 30 Aug 2009 09:12:17 +0000 (11:12 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 30 Aug 2009 09:13:18 +0000 (11:13 +0200)
Apparently the AIX compiler can't deal with sizeless array declarations

source3/winbindd/winbindd_domain.c
source3/winbindd/winbindd_idmap.c
source3/winbindd/winbindd_locator.c

index 107c83ac80866082f5f0a2ab9672878f3e9cbba7..96cbf6f74658b1627014993c231799a2344cbe28 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(domain, child, domain_dispatch_table,
-                   "log.wb", domain->name);
-
-       child->domain = domain;
-}
-
 static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
        {
                .name           = "PING",
@@ -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(domain, child, domain_dispatch_table,
+                   "log.wb", domain->name);
+
+       child->domain = domain;
+}
index c6b70f4edba541992657cb558702025fa11343c1..b1a06efa1ed1dacf6bd03041cc1f89b9efa34c95 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(NULL, &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(NULL, &static_idmap_child,
+                   idmap_dispatch_table,
+                   "log.winbindd", "idmap");
+}
index 7776c3dc97800c2cecd7e1f87e9dae3ac974698a..59e8614fdbcc9a30807a4389d2bfb07cc131af89 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(NULL, &static_locator_child,
-                   locator_dispatch_table,
-                   "log.winbindd", "locator");
-}
-
 struct winbindd_child *locator_child(void)
 {
        return &static_locator_child;
@@ -56,3 +47,10 @@ static const struct winbindd_child_dispatch_table locator_dispatch_table[] = {
                .name           = NULL,
        }
 };
+
+void init_locator_child(void)
+{
+       setup_child(NULL, &static_locator_child,
+                   locator_dispatch_table,
+                   "log.winbindd", "locator");
+}