]> source.dussan.org Git - rspamd.git/commitdiff
Fix const qualifier usage
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 16 Dec 2015 15:02:26 +0000 (15:02 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 16 Dec 2015 15:02:26 +0000 (15:02 +0000)
src/libserver/cfg_rcl.c

index fa318c126eeacfadfcfc5b3632548bcbe5c4885e..014a441838f8fee3636583058f81b689dc7e5aa9 100644 (file)
@@ -2568,7 +2568,7 @@ rspamd_worker_param_key_hash (gconstpointer p)
 static gboolean
 rspamd_worker_param_key_equal (gconstpointer p1, gconstpointer p2)
 {
-       struct rspamd_worker_param_key *k1 = p1, *k2 = p2;
+       const struct rspamd_worker_param_key *k1 = p1, *k2 = p2;
 
        if (k1->ptr == k2->ptr) {
                return strcmp (k1->name, k2->name) == 0;