svn commit: samba r17756 - in
branches/SAMBA_4_0/source/lib/ldb/ldb_tdb: .
metze at samba.org
metze at samba.org
Wed Aug 23 14:48:19 GMT 2006
Author: metze
Date: 2006-08-23 14:48:19 +0000 (Wed, 23 Aug 2006)
New Revision: 17756
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17756
Log:
I don't know why but this only works with the standalone
ldb build...I'll test more tomorrow.
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 14:13:54 UTC (rev 17755)
+++ branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c 2006-08-23 14:48:19 UTC (rev 17756)
@@ -61,11 +61,11 @@
int r;
test_i = (min_i + max_i) / 2;
- r = comp_fn(needle, (const void *)(base_p + (size * test_i)));
+ r = comp_fn(needle, *(void * const *)(base_p + (size * test_i)));
if (r == 0) {
/* scan back for first element */
while (test_i > 0 &&
- comp_fn(needle, (const void *)(base_p + (size * (test_i-1)))) == 0) {
+ comp_fn(needle, *(void * const *)(base_p + (size * (test_i-1)))) == 0) {
test_i--;
}
return test_i;
@@ -81,7 +81,7 @@
}
}
- if (comp_fn(needle, (const void *)(base_p + (size * min_i))) == 0) {
+ if (comp_fn(needle, *(void * const *)(base_p + (size * min_i))) == 0) {
return min_i;
}
More information about the samba-cvs
mailing list