svn commit: samba r2667 - in branches/SAMBA_4_0/source/lib/ldb/ldb_tdb: .

jelmer at samba.org jelmer at samba.org
Sun Sep 26 22:19:48 GMT 2004


Author: jelmer
Date: 2004-09-26 22:19:48 +0000 (Sun, 26 Sep 2004)
New Revision: 2667

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/lib/ldb/ldb_tdb&rev=2667&nolog=1

Log:
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

Modified:
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c	2004-09-26 22:16:09 UTC (rev 2666)
+++ branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c	2004-09-26 22:19:48 UTC (rev 2667)
@@ -177,6 +177,9 @@
 	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 @@
 	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;



More information about the samba-cvs mailing list