aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-23 17:44:04 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-23 17:44:04 +0000
commit71d52e806a4780d95eb0322544330e31a7a375d9 (patch)
tree15709221c847de6b85ebbb3ad020a29441b1cbfb /src/lua/lua_task.c
parent11021601e04634213a31df0c16aa4d1c064201ac (diff)
downloadrspamd-71d52e806a4780d95eb0322544330e31a7a375d9.tar.gz
rspamd-71d52e806a4780d95eb0322544330e31a7a375d9.zip
[Minor] Fix various style issues
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index f4d7f9dd6..711708335 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -15,19 +15,11 @@
*/
#include "lua_common.h"
#include "message.h"
-#include "protocol.h"
-#include "filter.h"
-#include "dns.h"
-#include "util.h"
#include "images.h"
#include "archives.h"
-#include "cfg_file.h"
-#include "email_addr.h"
#include "utlist.h"
-#include "cryptobox.h"
#include "unix-std.h"
#include "libmime/smtp_parsers.h"
-#include "contrib/uthash/utlist.h"
#include <math.h>
/***
@@ -2582,7 +2574,7 @@ lua_task_get_helo (lua_State *L)
if (task) {
if (task->helo != NULL) {
- lua_pushstring (L, (gchar *)task->helo);
+ lua_pushstring (L, task->helo);
return 1;
}
else {
@@ -3998,7 +3990,7 @@ lua_image_get_size (lua_State *L)
struct rspamd_image *img = lua_check_image (L);
if (img != NULL) {
- lua_pushinteger (L, img->data->len);
+ lua_pushnumber (L, img->data->len);
}
else {
return luaL_error (L, "invalid arguments");
@@ -4124,7 +4116,7 @@ lua_archive_get_size (lua_State *L)
struct rspamd_archive *arch = lua_check_archive (L);
if (arch != NULL) {
- lua_pushinteger (L, arch->size);
+ lua_pushnumber (L, arch->size);
}
else {
return luaL_error (L, "invalid arguments");