aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_internal.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-05 16:59:02 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-05 16:59:02 +0000
commita142fd150c47668215f8cf9f75374b8e8434b7d9 (patch)
tree5cfa570a615e1f37ab57cee8f2b953094a7ad850 /src/libstat/stat_internal.h
parent46c0c532f5bcc555cd106a61a5e659706290ac78 (diff)
downloadrspamd-a142fd150c47668215f8cf9f75374b8e8434b7d9.tar.gz
rspamd-a142fd150c47668215f8cf9f75374b8e8434b7d9.zip
Fix tokenization
Diffstat (limited to 'src/libstat/stat_internal.h')
-rw-r--r--src/libstat/stat_internal.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/libstat/stat_internal.h b/src/libstat/stat_internal.h
index 1e9d5dd44..2dd3f2fb5 100644
--- a/src/libstat/stat_internal.h
+++ b/src/libstat/stat_internal.h
@@ -35,15 +35,6 @@ enum stat_process_stage {
RSPAMD_STAT_STAGE_POST
};
-struct rspamd_tokenizer_runtime {
- GTree *tokens;
- const gchar *name;
- struct rspamd_stat_tokenizer *tokenizer;
- struct rspamd_tokenizer_config *tkcf;
- gpointer config;
- gsize conf_len;
-};
-
struct rspamd_statfile_runtime {
struct rspamd_statfile_config *st;
gpointer backend_runtime;
@@ -90,7 +81,7 @@ typedef struct token_node_s {
guchar data[RSPAMD_MAX_TOKEN_LEN];
guint window_idx;
guint datalen;
- gdouble values[1];
+ gdouble values[0];
} rspamd_token_t;
struct rspamd_stat_ctx {