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

metze at samba.org metze at samba.org
Wed Aug 23 11:29:08 GMT 2006


Author: metze
Date: 2006-08-23 11:29:08 +0000 (Wed, 23 Aug 2006)
New Revision: 17748

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17748

Log:
make the casts much easier to understand

metze
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	2006-08-23 11:27:40 UTC (rev 17747)
+++ branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c	2006-08-23 11:29:08 UTC (rev 17748)
@@ -61,11 +61,11 @@
 		int r;
 
 		test_i = (min_i + max_i) / 2;
-		r = comp_fn(needle, *(void * const *)(base_p + (size * test_i)));
+		r = comp_fn(needle, (const void *)(base_p + (size * test_i)));
 		if (r == 0) {
 			/* scan back for first element */
 			while (test_i > 0 &&
-			       comp_fn(needle, *(void * const *)(base_p + (size * (test_i-1)))) == 0) {
+			       comp_fn(needle, (const void *)(base_p + (size * (test_i-1)))) == 0) {
 				test_i--;
 			}
 			return test_i;
@@ -81,7 +81,7 @@
 		}
 	}
 
-	if (comp_fn(needle, *(void * const *)(base_p + (size * min_i))) == 0) {
+	if (comp_fn(needle, (const void *)(base_p + (size * min_i))) == 0) {
 		return min_i;
 	}
 



More information about the samba-cvs mailing list