aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_mempool.c
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/lua/lua_mempool.c
parent72539a7ad17fb79ef68c39d728a5f706947e3441 (diff)
downloadrspamd-75327b3889c80ad0a0c95ccf4444b5c2bc148e14.tar.gz
rspamd-75327b3889c80ad0a0c95ccf4444b5c2bc148e14.zip
[Project] Convert the remaining
Diffstat (limited to 'src/lua/lua_mempool.c')
-rw-r--r--src/lua/lua_mempool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_mempool.c b/src/lua/lua_mempool.c
index 4897d1542..bb855710f 100644
--- a/src/lua/lua_mempool.c
+++ b/src/lua/lua_mempool.c
@@ -149,7 +149,7 @@ struct lua_mempool_udata {
struct memory_pool_s *
rspamd_lua_check_mempool(lua_State *L, gint pos)
{
- void *ud = rspamd_lua_check_udata(L, pos, "rspamd{mempool}");
+ void *ud = rspamd_lua_check_udata(L, pos, rspamd_mempool_classname);
luaL_argcheck(L, ud != NULL, pos, "'mempool' expected");
return ud ? *((struct memory_pool_s **) ud) : NULL;
}
@@ -165,7 +165,7 @@ lua_mempool_create(lua_State *L)
if (mempool) {
pmempool = lua_newuserdata(L, sizeof(struct memory_pool_s *));
- rspamd_lua_setclass(L, "rspamd{mempool}", -1);
+ rspamd_lua_setclass(L, rspamd_mempool_classname, -1);
*pmempool = mempool;
}
else {
@@ -606,7 +606,7 @@ lua_load_mempool(lua_State *L)
void luaopen_mempool(lua_State *L)
{
- rspamd_lua_new_class(L, "rspamd{mempool}", mempoollib_m);
+ rspamd_lua_new_class(L, rspamd_mempool_classname, mempoollib_m);
lua_pop(L, 1);
rspamd_lua_add_preload(L, "rspamd_mempool", lua_load_mempool);
}