aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-03-05 14:00:08 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-03-05 14:00:08 +0000
commit75327b3889c80ad0a0c95ccf4444b5c2bc148e14 (patch)
treed322e1dda625fed70ded03abe1a179134624bd8e /src/libserver
parent72539a7ad17fb79ef68c39d728a5f706947e3441 (diff)
downloadrspamd-75327b3889c80ad0a0c95ccf4444b5c2bc148e14.tar.gz
rspamd-75327b3889c80ad0a0c95ccf4444b5c2bc148e14.zip
[Project] Convert the remaining
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/cfg_rcl.cxx2
-rw-r--r--src/libserver/dynamic_cfg.c4
-rw-r--r--src/libserver/symcache/symcache_impl.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/cfg_rcl.cxx b/src/libserver/cfg_rcl.cxx
index 3ac7560a8..39360110f 100644
--- a/src/libserver/cfg_rcl.cxx
+++ b/src/libserver/cfg_rcl.cxx
@@ -3762,7 +3762,7 @@ rspamd_config_read(struct rspamd_config *cfg,
void *pcfg = lua_newuserdata(RSPAMD_LUA_CFG_STATE(cfg), sizeof(void *));
memcpy(pcfg, &cfg, sizeof(void *));
- rspamd_lua_setclass(RSPAMD_LUA_CFG_STATE(cfg), "rspamd{config}", -1);
+ rspamd_lua_setclass(RSPAMD_LUA_CFG_STATE(cfg), rspamd_config_classname, -1);
if (lua_pcall(RSPAMD_LUA_CFG_STATE(cfg), 1, 0, err_idx) != 0) {
msg_err_config("cannot call lua init_debug_logging script: %s",
diff --git a/src/libserver/dynamic_cfg.c b/src/libserver/dynamic_cfg.c
index cd5cc4e30..80121c9cd 100644
--- a/src/libserver/dynamic_cfg.c
+++ b/src/libserver/dynamic_cfg.c
@@ -482,7 +482,7 @@ rspamd_maybe_add_lua_dynsym(struct rspamd_config *cfg,
if (lua_type(L, -1) == LUA_TFUNCTION) {
pcfg = lua_newuserdata(L, sizeof(*pcfg));
*pcfg = cfg;
- rspamd_lua_setclass(L, "rspamd{config}", -1);
+ rspamd_lua_setclass(L, rspamd_config_classname, -1);
lua_pushstring(L, sym);
lua_pushnumber(L, score);
@@ -530,7 +530,7 @@ rspamd_maybe_add_lua_dynact(struct rspamd_config *cfg,
if (lua_type(L, -1) == LUA_TFUNCTION) {
pcfg = lua_newuserdata(L, sizeof(*pcfg));
*pcfg = cfg;
- rspamd_lua_setclass(L, "rspamd{config}", -1);
+ rspamd_lua_setclass(L, rspamd_config_classname, -1);
lua_pushstring(L, action);
lua_pushnumber(L, score);
diff --git a/src/libserver/symcache/symcache_impl.cxx b/src/libserver/symcache/symcache_impl.cxx
index 93675ac16..63ac4a58e 100644
--- a/src/libserver/symcache/symcache_impl.cxx
+++ b/src/libserver/symcache/symcache_impl.cxx
@@ -1052,7 +1052,7 @@ auto symcache::periodic_resort(struct ev_loop *ev_loop, double cur_time, double
lua_rawgeti(L, LUA_REGISTRYINDEX, peak_cb);
pbase = (struct ev_loop **) lua_newuserdata(L, sizeof(*pbase));
*pbase = ev_loop;
- rspamd_lua_setclass(L, "rspamd{ev_base}", -1);
+ rspamd_lua_setclass(L, rspamd_ev_base_classname, -1);
lua_pushlstring(L, item->symbol.c_str(), item->symbol.size());
lua_pushnumber(L, item->st->avg_frequency);
lua_pushnumber(L, ::sqrt(item->st->stddev_frequency));