On 01/04/16 22:01, Odhiambo Washington wrote: > cdb.c: In function 'cdb_find':
> cdb.c:301: warning: passing argument 1 of 'cdb_hash' discards qualifiers
> from pointer target type
How does the attached patch feel?
--
Cheers,
Jeremy
diff --git a/src/src/lookups/cdb.c b/src/src/lookups/cdb.c
index ba925dc..4ff42ab 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;