aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua_worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-27 12:58:23 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-27 13:10:40 +0000
commit19f28d85479e4d0e97d15f8ad05890c01fd033f3 (patch)
tree872e6e6ae0ee02bd76a2e36107e5f0b1893c582b /src/lua_worker.c
parent424ac722959351c8332e185e36fb7daddff24faf (diff)
downloadrspamd-19f28d85479e4d0e97d15f8ad05890c01fd033f3.tar.gz
rspamd-19f28d85479e4d0e97d15f8ad05890c01fd033f3.zip
Add ability to insert documentation strings
Issue: #461
Diffstat (limited to 'src/lua_worker.c')
-rw-r--r--src/lua_worker.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lua_worker.c b/src/lua_worker.c
index 1e37419a2..7188cb6b8 100644
--- a/src/lua_worker.c
+++ b/src/lua_worker.c
@@ -22,6 +22,7 @@
*/
+#include <tclDecls.h>
#include "config.h"
#include "util.h"
#include "rspamd.h"
@@ -325,9 +326,14 @@ init_lua_worker (struct rspamd_config *cfg)
(GDestroyNotify)g_list_free);
- rspamd_rcl_register_worker_option (cfg, type, "file",
- rspamd_rcl_parse_struct_string, ctx,
- G_STRUCT_OFFSET (struct rspamd_lua_worker_ctx, file), 0);
+ rspamd_rcl_register_worker_option (cfg,
+ type,
+ "file",
+ rspamd_rcl_parse_struct_string,
+ ctx,
+ G_STRUCT_OFFSET (struct rspamd_lua_worker_ctx, file),
+ 0,
+ NULL);
rspamd_rcl_register_worker_parser (cfg, type, rspamd_lua_worker_parser,
ctx);