aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/hash.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-24 17:35:02 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-08-24 17:35:02 +0100
commita1be94b4c4b59de216e0b8b721a951b2325f7215 (patch)
tree6bb00558dd03918b500468e7385d716e83499265 /src/libutil/hash.c
parent71f5454dc80cb2cc90363e219d85533b0e7a7895 (diff)
downloadrspamd-a1be94b4c4b59de216e0b8b721a951b2325f7215.tar.gz
rspamd-a1be94b4c4b59de216e0b8b721a951b2325f7215.zip
Rework lists and hashes.
Diffstat (limited to 'src/libutil/hash.c')
-rw-r--r--src/libutil/hash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/hash.c b/src/libutil/hash.c
index 7e4e7f27e..ec952e87b 100644
--- a/src/libutil/hash.c
+++ b/src/libutil/hash.c
@@ -24,6 +24,7 @@
#include "config.h"
#include "hash.h"
+#define HASH_CASELESS
#include "uthash_strcase.h"
#include "utlist.h"
@@ -194,7 +195,7 @@ rspamd_lru_hash_insert (rspamd_lru_hash_t *hash, gpointer key, gpointer value,
}
res = rspamd_lru_create_node (hash, key, value, now, ttl);
- HASH_ADD (hh, hash->elements, key, strlen (key), res);
+ HASH_ADD_KEYPTR (hh, hash->elements, key, strlen (key), res);
}
void