diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-05 14:00:08 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-05 14:00:08 +0000 |
commit | 75327b3889c80ad0a0c95ccf4444b5c2bc148e14 (patch) | |
tree | d322e1dda625fed70ded03abe1a179134624bd8e /src/lua/lua_udp.c | |
parent | 72539a7ad17fb79ef68c39d728a5f706947e3441 (diff) | |
download | rspamd-75327b3889c80ad0a0c95ccf4444b5c2bc148e14.tar.gz rspamd-75327b3889c80ad0a0c95ccf4444b5c2bc148e14.zip |
[Project] Convert the remaining
Diffstat (limited to 'src/lua/lua_udp.c')
-rw-r--r-- | src/lua/lua_udp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_udp.c b/src/lua/lua_udp.c index c79e35a8c..d20475933 100644 --- a/src/lua/lua_udp.c +++ b/src/lua/lua_udp.c @@ -424,7 +424,7 @@ lua_udp_sendto(lua_State *L) if (task == NULL) { lua_pushstring(L, "ev_base"); lua_gettable(L, -2); - if (rspamd_lua_check_udata_maybe(L, -1, "rspamd{ev_base}")) { + if (rspamd_lua_check_udata_maybe(L, -1, rspamd_ev_base_classname)) { ev_base = *(struct ev_loop **) lua_touserdata(L, -1); } else { @@ -434,7 +434,7 @@ lua_udp_sendto(lua_State *L) lua_pushstring(L, "session"); lua_gettable(L, -2); - if (rspamd_lua_check_udata_maybe(L, -1, "rspamd{session}")) { + if (rspamd_lua_check_udata_maybe(L, -1, rspamd_session_classname)) { session = *(struct rspamd_async_session **) lua_touserdata(L, -1); } else { @@ -444,7 +444,7 @@ lua_udp_sendto(lua_State *L) lua_pushstring(L, "pool"); lua_gettable(L, -2); - if (rspamd_lua_check_udata_maybe(L, -1, "rspamd{mempool}")) { + if (rspamd_lua_check_udata_maybe(L, -1, rspamd_mempool_classname)) { pool = *(rspamd_mempool_t **) lua_touserdata(L, -1); } else { |