aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/hash.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-18 17:38:13 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-18 17:38:13 +0000
commit335db24f7fbae883e3ed58ee701bc405a31aa959 (patch)
tree393217584c67710e4b17c8362feb0412eea55b4c /src/libutil/hash.h
parent0d2c52dd9cc410961a600b92f8b04318c9e7e87d (diff)
downloadrspamd-335db24f7fbae883e3ed58ee701bc405a31aa959.tar.gz
rspamd-335db24f7fbae883e3ed58ee701bc405a31aa959.zip
Use const pointer for LRU cache search.
Diffstat (limited to 'src/libutil/hash.h')
-rw-r--r--src/libutil/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/hash.h b/src/libutil/hash.h
index 58a6e9e19..022548f3c 100644
--- a/src/libutil/hash.h
+++ b/src/libutil/hash.h
@@ -50,7 +50,7 @@ rspamd_lru_hash_t * rspamd_lru_hash_new_full (
* @return value of key or NULL if key is not found
*/
gpointer rspamd_lru_hash_lookup (rspamd_lru_hash_t *hash,
- gpointer key,
+ gconstpointer key,
time_t now);
/**
* Insert item in hash