diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-01 20:14:32 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-01 20:14:32 +0400 |
commit | 9d703560099beea2b2b53c533e7f71dc926293b2 (patch) | |
tree | d60df5c9d3f7dbb9931dc1243362d1808f1ff459 /test/rspamd_fuzzy_test.c | |
parent | 7dcf9f9bade26ca02b8706a2e4cb2066f6ba7b00 (diff) | |
download | rspamd-9d703560099beea2b2b53c533e7f71dc926293b2.tar.gz rspamd-9d703560099beea2b2b53c533e7f71dc926293b2.zip |
Separate librspamdserver API from plugins and workers functions.
Make tests compileable again.
Diffstat (limited to 'test/rspamd_fuzzy_test.c')
-rw-r--r-- | test/rspamd_fuzzy_test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/rspamd_fuzzy_test.c b/test/rspamd_fuzzy_test.c index 004ebf3c0..7805e4f42 100644 --- a/test/rspamd_fuzzy_test.c +++ b/test/rspamd_fuzzy_test.c @@ -39,7 +39,7 @@ rspamd_fuzzy_test_func () memory_pool_t *pool; fuzzy_hash_t *h1, *h2, *h3, *h4, *h5; f_str_t f1, f2, f3, f4, f5; - int diff1, diff2; + int diff2; pool = memory_pool_new (1024); f1.begin = s1; @@ -59,7 +59,6 @@ rspamd_fuzzy_test_func () h4 = fuzzy_init (&f4, pool); h5 = fuzzy_init (&f5, pool); - diff1 = fuzzy_compare_hashes (h3, h4) + fuzzy_compare_hashes (h2, h4); diff2 = fuzzy_compare_hashes (h2, h5); msg_debug ("rspamd_fuzzy_test_func: s1, s2 difference between strings is %d", fuzzy_compare_hashes (h1, h2)); msg_debug ("rspamd_fuzzy_test_func: s1, s3 difference between strings is %d", fuzzy_compare_hashes (h1, h3)); |