From 8d811df12b7e535e6e44bac088a4724a8478c4b1 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 26 Sep 2004 22:19:48 +0000 Subject: r2667: Remove forward declaration of static function from function. GCC 3.5 and 4.0 don't accept declarations of static functions inside other functions, see http://gcc.gnu.org/ml/gcc-patches/2004-08/msg02514.html (This used to be commit 8768168aadf51b9559831954e349d9aa94101c41) --- source4/lib/ldb/ldb_tdb/ldb_index.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/ldb/ldb_tdb/ldb_index.c b/source4/lib/ldb/ldb_tdb/ldb_index.c index 8a26e2d197..e23ae1e7dd 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_index.c +++ b/source4/lib/ldb/ldb_tdb/ldb_index.c @@ -177,6 +177,9 @@ static int ltdb_index_dn_simple(struct ldb_context *ldb, return 1; } + +static int list_union(struct ldb_context *, struct dn_list *, const struct dn_list *); + /* return a list of dn's that might match a simple indexed search on the special objectclass attribute @@ -190,8 +193,6 @@ static int ltdb_index_dn_objectclass(struct ldb_context *ldb, unsigned int i; int ret; const char *target = tree->u.simple.value.data; - static int list_union(struct ldb_context *, - struct dn_list *, const struct dn_list *); list->count = 0; list->dn = NULL; -- cgit