aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-14 13:01:08 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-14 13:37:18 +0000
commit4a17956f7b5b6268859445e1d2369abdb2965ae4 (patch)
tree7e2849b456ef4f11ae2bde3d3526fb0ecc741b04 /src/lua/lua_util.c
parentda43e0ec3b059752e7d4d4d283e33d568aa110cf (diff)
downloadrspamd-4a17956f7b5b6268859445e1d2369abdb2965ae4.tar.gz
rspamd-4a17956f7b5b6268859445e1d2369abdb2965ae4.zip
[Rework] Use a special structure for stats tokens
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r--src/lua/lua_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index 5bd59a32d..80baf8b34 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -895,7 +895,7 @@ lua_util_tokenize_text (lua_State *L)
struct rspamd_lua_text *t;
struct rspamd_process_exception *ex;
GArray *res;
- rspamd_ftok_t *w;
+ rspamd_stat_token_t *w;
gboolean compat = FALSE;
if (lua_type (L, 1) == LUA_TSTRING) {
@@ -959,7 +959,7 @@ lua_util_tokenize_text (lua_State *L)
lua_createtable (L, res->len, 0);
for (i = 0; i < res->len; i ++) {
- w = &g_array_index (res, rspamd_ftok_t, i);
+ w = &g_array_index (res, rspamd_stat_token_t, i);
lua_pushlstring (L, w->begin, w->len);
lua_rawseti (L, -2, i + 1);
}