summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-08-23 11:29:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:36 -0500
commit78525245329a627460db6bbcfd85f29bff2ff373 (patch)
tree0b0bc6bcfc515302c3d6c3eaf9f87e269fb82ec6 /source4/lib/ldb
parent7a76b20d4feaf6f6ff28eda8dcc2e8704de07df8 (diff)
downloadsamba-78525245329a627460db6bbcfd85f29bff2ff373.tar.gz
samba-78525245329a627460db6bbcfd85f29bff2ff373.tar.bz2
samba-78525245329a627460db6bbcfd85f29bff2ff373.zip
r17748: make the casts much easier to understand
metze (This used to be commit 5992f3b918967ff478ad24333cfe583e0b14a4c9)
Diffstat (limited to 'source4/lib/ldb')
-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 c6feeaeb42..03dfe693ac 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, *(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 @@ static int ldb_list_find(const void *needle,
}
}
- 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;
}