git://git.exim.org
/
users
/
jgh
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80fea87
)
contstification
author
Jeremy Harris
<jgh146exb@wizmail.org>
Sat, 2 Apr 2016 17:02:54 +0000
(18:02 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Sat, 2 Apr 2016 17:02:54 +0000
(18:02 +0100)
src/src/lookups/cdb.c
patch
|
blob
|
history
diff --git
a/src/src/lookups/cdb.c
b/src/src/lookups/cdb.c
index ba925dc12cb7cda6ca2bba60ac0609a3d4d1ed3c..4ff42ab3e69154ae57cec6ac5893c06430bfeacb 100644
(file)
--- a/
src/src/lookups/cdb.c
+++ b/
src/src/lookups/cdb.c
@@
-94,7
+94,7
@@
typedef unsigned int uint32;
* Internal function to make hash value */
static uint32
-cdb_hash(uschar *buf, unsigned int len)
+cdb_hash(
const
uschar *buf, unsigned int len)
{
uint32 h;
@@
-298,7
+298,7
@@
cdb_find(void *handle,
/* Keep picky compilers happy */
do_cache = do_cache;
- key_hash = cdb_hash(
(uschar *)
keystring, key_len);
+ key_hash = cdb_hash(keystring, key_len);
hash_offset_entry = CDB_HASH_ENTRY * (key_hash & CDB_HASH_MASK);
hash_offset = cdb_unpack(cdbp->cdb_offsets + hash_offset_entry);