summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-08-30 11:12:17 +0200
committerVolker Lendecke <vl@samba.org>2009-08-30 11:13:18 +0200
commit417927019856182c3bd09318def82a561ebc12a5 (patch)
tree5868be1a71fc8adce1a12adbe2ae78acd6be2481 /source3
parent0cae043b0c1d2fa55f6709230658155caaecb4fc (diff)
downloadsamba-417927019856182c3bd09318def82a561ebc12a5.tar.gz
s3:winbind: Fix bug 5626
Apparently the AIX compiler can't deal with sizeless array declarations
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_domain.c20
-rw-r--r--source3/winbindd/winbindd_idmap.c16
-rw-r--r--source3/winbindd/winbindd_locator.c16
3 files changed, 23 insertions, 29 deletions
diff --git a/source3/winbindd/winbindd_domain.c b/source3/winbindd/winbindd_domain.c
index 107c83ac808..96cbf6f7465 100644
--- a/source3/winbindd/winbindd_domain.c
+++ b/source3/winbindd/winbindd_domain.c
@@ -25,17 +25,6 @@
#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;
+}
diff --git a/source3/winbindd/winbindd_idmap.c b/source3/winbindd/winbindd_idmap.c
index c6b70f4edba..b1a06efa1ed 100644
--- a/source3/winbindd/winbindd_idmap.c
+++ b/source3/winbindd/winbindd_idmap.c
@@ -38,17 +38,8 @@
#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");
+}
diff --git a/source3/winbindd/winbindd_locator.c b/source3/winbindd/winbindd_locator.c
index 7776c3dc978..59e8614fdbc 100644
--- a/source3/winbindd/winbindd_locator.c
+++ b/source3/winbindd/winbindd_locator.c
@@ -27,17 +27,8 @@
#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");
+}