summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-08-30 11:06:14 +0200
committerKarolin Seeger <kseeger@samba.org>2010-02-24 16:25:10 +0100
commit8a002075e13578fe861e2db90284975df0fa0ba3 (patch)
tree608d50072cefa0d11a59bf6d0a9aca91c6421b1c
parente9fb545b5888c4627dae56d53ec61c778182c21f (diff)
downloadsamba-8a002075e13578fe861e2db90284975df0fa0ba3.tar.gz
samba-8a002075e13578fe861e2db90284975df0fa0ba3.tar.xz
samba-8a002075e13578fe861e2db90284975df0fa0ba3.zip
s3:winbind: Fix bug 5626
Apparently the AIX compiler can't deal with sizeless array declarations (cherry picked from commit dd4194bc43cc5efd7517783e5e524d252d1f82c7)
-rw-r--r--source/winbindd/winbindd_domain.c20
-rw-r--r--source/winbindd/winbindd_idmap.c16
-rw-r--r--source/winbindd/winbindd_locator.c16
3 files changed, 23 insertions, 29 deletions
diff --git a/source/winbindd/winbindd_domain.c b/source/winbindd/winbindd_domain.c
index 2e8c6175ca0..1b76bbdf27a 100644
--- a/source/winbindd/winbindd_domain.c
+++ b/source/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",
@@ -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;
+}
diff --git a/source/winbindd/winbindd_idmap.c b/source/winbindd/winbindd_idmap.c
index 94a8c78a855..ae80c8a9d7c 100644
--- a/source/winbindd/winbindd_idmap.c
+++ b/source/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/source/winbindd/winbindd_locator.c b/source/winbindd/winbindd_locator.c
index b60d235f708..07378344125 100644
--- a/source/winbindd/winbindd_locator.c
+++ b/source/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");
+}