summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-08-30 11:06:14 +0200
committerKarolin Seeger <kseeger@samba.org>2010-05-06 14:27:55 +0200
commit5d75869a7c1eb796a910536a3055d1bf4b4e6d88 (patch)
treedf521c8821efa0904591c60ac46e73ec0df88ac2
parent2e4da80e4e70a0f09a63a8c1e228b17a35de4707 (diff)
downloadsamba-5d75869a7c1eb796a910536a3055d1bf4b4e6d88.tar.gz
s3:winbind: Fix bug 5626
Apparently the AIX compiler can't deal with sizeless array declarations (cherry picked from commit 5444adaf59bc6b9bd8f339de21ab66da9e684073)
-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 1fc3ce7304d..265a3e3b1b5 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(child, domain_dispatch_table,
- "log.wb", domain->name);
-
- child->domain = domain;
-}
-
static const struct winbindd_child_dispatch_table domain_dispatch_table[] = {
{
.name = "LOOKUPSID",
@@ -121,3 +110,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;
+}
diff --git a/source3/winbindd/winbindd_idmap.c b/source3/winbindd/winbindd_idmap.c
index 9f5d17ec7cf..4e7bd513fde 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(&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");
+}
diff --git a/source3/winbindd/winbindd_locator.c b/source3/winbindd/winbindd_locator.c
index b60d235f708..07378344125 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(&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");
+}