summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-08-23 14:48:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:37 -0500
commit48c7cfcb749f2df1500339c1046854721f8a1a7e (patch)
tree0cad2b7bfe4a0d1627d0b7b80eeda087b7f3820e
parentfba1659720c995285fad0ef8d1db29fa41f8f6c3 (diff)
downloadsamba-48c7cfcb749f2df1500339c1046854721f8a1a7e.tar.gz
samba-48c7cfcb749f2df1500339c1046854721f8a1a7e.tar.bz2
samba-48c7cfcb749f2df1500339c1046854721f8a1a7e.zip
r17756: I don't know why but this only works with the standalone
ldb build...I'll test more tomorrow. metze (This used to be commit aeee1b4655620154a8fefe471ac6327c5ccb8798)
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_index.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_index.c b/source4/lib/ldb/ldb_tdb/ldb_index.c
index 03dfe693ac..c6feeaeb42 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_index.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_index.c
@@ -61,11 +61,11 @@ static int ldb_list_find(const void *needle,
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 @@ static int ldb_list_find(const void *needle,
}
}
- 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;
}