diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-18 17:38:13 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-18 17:38:13 +0000 |
commit | 335db24f7fbae883e3ed58ee701bc405a31aa959 (patch) | |
tree | 393217584c67710e4b17c8362feb0412eea55b4c /src/libutil/hash.c | |
parent | 0d2c52dd9cc410961a600b92f8b04318c9e7e87d (diff) | |
download | rspamd-335db24f7fbae883e3ed58ee701bc405a31aa959.tar.gz rspamd-335db24f7fbae883e3ed58ee701bc405a31aa959.zip |
Use const pointer for LRU cache search.
Diffstat (limited to 'src/libutil/hash.c')
-rw-r--r-- | src/libutil/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/hash.c b/src/libutil/hash.c index 7610a4a9a..0a09e3b11 100644 --- a/src/libutil/hash.c +++ b/src/libutil/hash.c @@ -124,7 +124,7 @@ rspamd_lru_hash_new ( } gpointer -rspamd_lru_hash_lookup (rspamd_lru_hash_t *hash, gpointer key, time_t now) +rspamd_lru_hash_lookup (rspamd_lru_hash_t *hash, gconstpointer key, time_t now) { rspamd_lru_element_t *res; GList *cur, *tmp; |