summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-21 15:57:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-04-21 15:57:39 +0100
commitad5bf825b7f33bc10311673991f0cc888e69c0b1 (patch)
tree51aeb06ce4838ed4af7d591fc2903f4e549b6e93 /src/lua/lua_task.c
parent53e8a8b05b7f0696ce72ccfd347a35bb80f19570 (diff)
downloadrspamd-ad5bf825b7f33bc10311673991f0cc888e69c0b1.tar.gz
rspamd-ad5bf825b7f33bc10311673991f0cc888e69c0b1.zip
Refactor task functions.
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 4ef56b3d4..3d58e6a65 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -267,7 +267,7 @@ lua_task_create_empty (lua_State *L)
{
struct rspamd_task **ptask, *task;
- task = construct_task (NULL);
+ task = rspamd_task_new (NULL);
ptask = lua_newuserdata (L, sizeof (gpointer));
lua_setclass (L, "rspamd{task}", -1);
*ptask = task;
@@ -283,7 +283,7 @@ lua_task_create_from_buffer (lua_State *L)
data = luaL_checklstring (L, 1, &len);
if (data) {
- task = construct_task (NULL);
+ task = rspamd_task_new (NULL);
ptask = lua_newuserdata (L, sizeof (gpointer));
lua_setclass (L, "rspamd{task}", -1);
*ptask = task;
@@ -328,7 +328,7 @@ lua_task_destroy (lua_State *L)
struct rspamd_task *task = lua_check_task (L);
if (task != NULL) {
- free_task (task, FALSE);
+ rspamd_task_free (task, FALSE);
}
return 0;