diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-23 16:49:42 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-23 16:49:42 +0000 |
commit | caa189167ab79c8fb71de4c74ed4b97ceb619550 (patch) | |
tree | 3e27030f6178aa93fea7ff71d60752552c960141 /src/libstat/tokenizers/osb.c | |
parent | 82612bf153debaff5a11e5542caca454e921eeaf (diff) | |
download | rspamd-caa189167ab79c8fb71de4c74ed4b97ceb619550.tar.gz rspamd-caa189167ab79c8fb71de4c74ed4b97ceb619550.zip |
Add initial processing routines.
Diffstat (limited to 'src/libstat/tokenizers/osb.c')
-rw-r--r-- | src/libstat/tokenizers/osb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstat/tokenizers/osb.c b/src/libstat/tokenizers/osb.c index f9307ded4..0a8d01ce1 100644 --- a/src/libstat/tokenizers/osb.c +++ b/src/libstat/tokenizers/osb.c @@ -26,8 +26,8 @@ * OSB tokenizer */ -#include <sys/types.h> #include "tokenizers.h" +#include "stat_internal.h" /* Size for features pipe */ #define FEATURE_WINDOW_SIZE 5 @@ -83,8 +83,8 @@ osb_tokenize_text (struct rspamd_stat_tokenizer *tokenizer, memcpy(new->data, &h1, sizeof(h1)); memcpy(new->data + sizeof(h1), &h2, sizeof(h2)); - if (g_tree_lookup (*tree, new) == NULL) { - g_tree_insert (*tree, new, new); + if (g_tree_lookup (tree, new) == NULL) { + g_tree_insert (tree, new, new); } } } |