s3:winbind: Fix bug 5626
[samba.git] / source / winbindd / winbindd_domain.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;
+}