aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/radix.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-03 17:00:40 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-03 17:13:24 +0000
commitdfeb726476193fee3add70d91c665e0a1be83289 (patch)
treec9f2574d303aa33fecfe2e48cac9d4ee346c69f5 /src/libutil/radix.h
parent12baac84a70768643647ca23fa5932894b58b3ae (diff)
downloadrspamd-dfeb726476193fee3add70d91c665e0a1be83289.tar.gz
rspamd-dfeb726476193fee3add70d91c665e0a1be83289.zip
Constify radix tree search code
Diffstat (limited to 'src/libutil/radix.h')
-rw-r--r--src/libutil/radix.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/radix.h b/src/libutil/radix.h
index 4200cf65e..cd27084a1 100644
--- a/src/libutil/radix.h
+++ b/src/libutil/radix.h
@@ -56,7 +56,7 @@ radix_insert_compressed (radix_compressed_t * tree,
* @param keylen length of a key
* @return opaque pointer or `RADIX_NO_VALUE` if no value has been found
*/
-uintptr_t radix_find_compressed (radix_compressed_t * tree, guint8 *key,
+uintptr_t radix_find_compressed (radix_compressed_t * tree, const guint8 *key,
gsize keylen);
/**
@@ -66,7 +66,7 @@ uintptr_t radix_find_compressed (radix_compressed_t * tree, guint8 *key,
* @return
*/
uintptr_t radix_find_compressed_addr (radix_compressed_t *tree,
- rspamd_inet_addr_t *addr);
+ const rspamd_inet_addr_t *addr);
/**
* Destroy the complete radix trie