diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-18 18:56:33 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-18 18:56:33 +0000 |
commit | 14c13854d3cae9d93c3d148be30fb72f1eaffe55 (patch) | |
tree | 7b1a3e41b75490fac4d45722c90a1847543c6796 /src/lua/lua_dns.c | |
parent | 6b2b4167187fee09365271cca182866ecb029af3 (diff) | |
download | rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.tar.gz rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.zip |
[Rework] Further types conversion (no functional changes)
Diffstat (limited to 'src/lua/lua_dns.c')
-rw-r--r-- | src/lua/lua_dns.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lua/lua_dns.c b/src/lua/lua_dns.c index cffa31259..2f20b6f5e 100644 --- a/src/lua/lua_dns.c +++ b/src/lua/lua_dns.c @@ -22,7 +22,7 @@ static const struct luaL_reg dns_f[] = { {"__tostring", rspamd_lua_class_tostring}, {NULL, NULL}}; -static const gchar *M = "rspamd lua dns"; +static const char *M = "rspamd lua dns"; void lua_dns_callback(struct rdns_reply *reply, void *arg); @@ -34,18 +34,18 @@ struct lua_rspamd_dns_cbdata { struct rspamd_async_session *s; }; -static gint +static int lua_dns_request(lua_State *L) { GError *err = NULL; struct rspamd_async_session *session = NULL; struct rspamd_config *cfg = NULL; struct lua_rspamd_dns_cbdata *cbdata = NULL; - const gchar *to_resolve = NULL; - const gchar *type_str = NULL; + const char *to_resolve = NULL; + const char *type_str = NULL; struct rspamd_task *task = NULL; rspamd_mempool_t *pool = NULL; - gint ret = 0; + int ret = 0; gboolean forced = FALSE; /* Check arguments */ @@ -183,7 +183,7 @@ void lua_dns_callback(struct rdns_reply *reply, void *arg) } } -static gint +static int lua_load_dns(lua_State *L) { lua_newtable(L); |