diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2016-04-02 18:02:54 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2016-04-02 18:02:54 +0100 |
commit | 576bd90c75d47d64d8cd36b580d18958baceecd7 (patch) | |
tree | e567501f07fff6bce0162d0d2bb32f4db17d957e | |
parent | 80fea873648ca2ab2e592999a336c59cf054ab55 (diff) |
contstification
-rw-r--r-- | src/src/lookups/cdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/src/lookups/cdb.c b/src/src/lookups/cdb.c index ba925dc12..4ff42ab3e 100644 --- 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); |