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/rspamadm | |
parent | 72539a7ad17fb79ef68c39d728a5f706947e3441 (diff) | |
download | rspamd-75327b3889c80ad0a0c95ccf4444b5c2bc148e14.tar.gz rspamd-75327b3889c80ad0a0c95ccf4444b5c2bc148e14.zip |
[Project] Convert the remaining
Diffstat (limited to 'src/rspamadm')
-rw-r--r-- | src/rspamadm/rspamadm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c index 0e38dc326..0b7a65006 100644 --- a/src/rspamadm/rspamadm.c +++ b/src/rspamadm/rspamadm.c @@ -336,17 +336,17 @@ rspamadm_add_lua_globals(struct rspamd_dns_resolver *resolver) NULL, (event_finalizer_t) NULL, NULL); psession = lua_newuserdata(L, sizeof(struct rspamd_async_session *)); - rspamd_lua_setclass(L, "rspamd{session}", -1); + rspamd_lua_setclass(L, rspamd_session_classname, -1); *psession = rspamadm_session; lua_setglobal(L, "rspamadm_session"); pev_base = lua_newuserdata(L, sizeof(struct ev_loop *)); - rspamd_lua_setclass(L, "rspamd{ev_base}", -1); + rspamd_lua_setclass(L, rspamd_ev_base_classname, -1); *pev_base = rspamd_main->event_loop; lua_setglobal(L, "rspamadm_ev_base"); presolver = lua_newuserdata(L, sizeof(struct rspamd_dns_resolver *)); - rspamd_lua_setclass(L, "rspamd{resolver}", -1); + rspamd_lua_setclass(L, rspamd_resolver_classname, -1); *presolver = resolver; lua_setglobal(L, "rspamadm_dns_resolver"); } |