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_expression.c | |
parent | 72539a7ad17fb79ef68c39d728a5f706947e3441 (diff) | |
download | rspamd-75327b3889c80ad0a0c95ccf4444b5c2bc148e14.tar.gz rspamd-75327b3889c80ad0a0c95ccf4444b5c2bc148e14.zip |
[Project] Convert the remaining
Diffstat (limited to 'src/lua/lua_expression.c')
-rw-r--r-- | src/lua/lua_expression.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_expression.c b/src/lua/lua_expression.c index 1ac6f864c..b3c725376 100644 --- a/src/lua/lua_expression.c +++ b/src/lua/lua_expression.c @@ -123,7 +123,7 @@ lua_expr_quark(void) struct lua_expression * rspamd_lua_expression(lua_State *L, gint pos) { - void *ud = rspamd_lua_check_udata(L, pos, "rspamd{expr}"); + void *ud = rspamd_lua_check_udata(L, pos, rspamd_expr_classname); luaL_argcheck(L, ud != NULL, pos, "'expr' expected"); return ud ? *((struct lua_expression **) ud) : NULL; } @@ -429,7 +429,7 @@ lua_expr_create(lua_State *L) rspamd_mempool_add_destructor(pool, lua_expr_dtor, e); pe = lua_newuserdata(L, sizeof(struct lua_expression *)); - rspamd_lua_setclass(L, "rspamd{expr}", -1); + rspamd_lua_setclass(L, rspamd_expr_classname, -1); *pe = e; lua_pushnil(L); } @@ -506,7 +506,7 @@ lua_load_expression(lua_State *L) void luaopen_expression(lua_State *L) { - rspamd_lua_new_class(L, "rspamd{expr}", exprlib_m); + rspamd_lua_new_class(L, rspamd_expr_classname, exprlib_m); lua_pop(L, 1); rspamd_lua_add_preload(L, "rspamd_expression", lua_load_expression); } |