diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-23 17:44:04 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-23 17:44:04 +0000 |
commit | 71d52e806a4780d95eb0322544330e31a7a375d9 (patch) | |
tree | 15709221c847de6b85ebbb3ad020a29441b1cbfb /src/lua/lua_tcp.c | |
parent | 11021601e04634213a31df0c16aa4d1c064201ac (diff) | |
download | rspamd-71d52e806a4780d95eb0322544330e31a7a375d9.tar.gz rspamd-71d52e806a4780d95eb0322544330e31a7a375d9.zip |
[Minor] Fix various style issues
Diffstat (limited to 'src/lua/lua_tcp.c')
-rw-r--r-- | src/lua/lua_tcp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c index 21a357400..ed8330e81 100644 --- a/src/lua/lua_tcp.c +++ b/src/lua/lua_tcp.c @@ -14,9 +14,7 @@ * limitations under the License. */ #include "lua_common.h" -#include "dns.h" #include "utlist.h" -#include "ref.h" #include "unix-std.h" /*** @@ -875,7 +873,7 @@ lua_tcp_arg_toiovec (lua_State *L, gint pos, struct lua_tcp_cbdata *cbd, vec->iov_base = g_malloc (len); dtor = g_slice_alloc0 (sizeof (*dtor)); dtor->dtor = g_free; - dtor->data = (void *)vec->iov_base; + dtor->data = vec->iov_base; LL_PREPEND (cbd->dtors, dtor); memcpy (vec->iov_base, str, len); vec->iov_len = len; |