diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-18 18:56:33 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-18 18:56:33 +0000 |
commit | 14c13854d3cae9d93c3d148be30fb72f1eaffe55 (patch) | |
tree | 7b1a3e41b75490fac4d45722c90a1847543c6796 /src/libstat/classifiers/lua_classifier.c | |
parent | 6b2b4167187fee09365271cca182866ecb029af3 (diff) | |
download | rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.tar.gz rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.zip |
[Rework] Further types conversion (no functional changes)
Diffstat (limited to 'src/libstat/classifiers/lua_classifier.c')
-rw-r--r-- | src/libstat/classifiers/lua_classifier.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstat/classifiers/lua_classifier.c b/src/libstat/classifiers/lua_classifier.c index 88ab015d6..d30de01a9 100644 --- a/src/libstat/classifiers/lua_classifier.c +++ b/src/libstat/classifiers/lua_classifier.c @@ -20,9 +20,9 @@ #include "lua/lua_common.h" struct rspamd_lua_classifier_ctx { - gchar *name; - gint classify_ref; - gint learn_ref; + char *name; + int classify_ref; + int learn_ref; }; static GHashTable *lua_classifiers = NULL; @@ -53,7 +53,7 @@ lua_classifier_init(struct rspamd_config *cfg, { struct rspamd_lua_classifier_ctx *ctx; lua_State *L = cl->ctx->cfg->lua_state; - gint cb_classify = -1, cb_learn = -1; + int cb_classify = -1, cb_learn = -1; if (lua_classifiers == NULL) { lua_classifiers = g_hash_table_new_full(rspamd_strcase_hash, @@ -135,7 +135,7 @@ lua_classifier_classify(struct rspamd_classifier *cl, struct rspamd_classifier_config **pcfg; lua_State *L; rspamd_token_t *tok; - guint i; + unsigned int i; uint64_t v; ctx = g_hash_table_lookup(lua_classifiers, cl->subrs->name); @@ -190,7 +190,7 @@ lua_classifier_learn_spam(struct rspamd_classifier *cl, struct rspamd_classifier_config **pcfg; lua_State *L; rspamd_token_t *tok; - guint i; + unsigned int i; uint64_t v; ctx = g_hash_table_lookup(lua_classifiers, cl->subrs->name); |