summaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-08-15 12:32:23 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-08-15 12:32:23 +0100
commit6a6536afd9c12b70c66bc9e53623eb6530b2ca73 (patch)
tree6c97014baa4be8358c388bfaef3e104ddf82955d /src/lua
parent028a29f991f98aff5c838145e6dd6fbebd07d187 (diff)
downloadrspamd-6a6536afd9c12b70c66bc9e53623eb6530b2ca73.tar.gz
rspamd-6a6536afd9c12b70c66bc9e53623eb6530b2ca73.zip
[Rework] Further conversion routines
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 8b909f6de..351dd9208 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -2299,7 +2299,7 @@ lua_task_set_pre_result(lua_State *L)
}
}
- gint internal_type;
+ enum rspamd_action_type internal_type;
if (strcmp(act_str, "accept") == 0) {
/* Compatibility! */
@@ -5692,7 +5692,7 @@ lua_task_set_settings(lua_State *L)
const gchar *act_name = ucl_object_key(cur);
struct rspamd_action_config *action_config = NULL;
double act_score;
- int act_type;
+ enum rspamd_action_type act_type;
if (!rspamd_action_from_str(act_name, &act_type)) {
act_type = -1;