r2667: Remove forward declaration of static function from function. GCC 3.5 and 4...
authorJelmer Vernooij <jelmer@samba.org>
Sun, 26 Sep 2004 22:19:48 +0000 (22:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:59:19 +0000 (12:59 -0500)
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

index 8a26e2d197e69eaa50b8933c11adbd0a3874a7a5..e23ae1e7dd020be7daad6f62a939ecd9c940f066 100644 (file)
@@ -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;