diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-17 17:15:16 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-17 17:15:16 +0100 |
commit | df48f709f804739d1b084174c46af04b10d2fede (patch) | |
tree | 2bb3270a4db81104bfd3c8abf9b19381e5d926b4 /src/lua/lua_cdb.c | |
parent | ac1dfb0beccf74a9f3ec82dfc257ea326532370d (diff) | |
download | rspamd-df48f709f804739d1b084174c46af04b10d2fede.tar.gz rspamd-df48f709f804739d1b084174c46af04b10d2fede.zip |
Rework lua function names to avoid ambiguity.
Diffstat (limited to 'src/lua/lua_cdb.c')
-rw-r--r-- | src/lua/lua_cdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_cdb.c b/src/lua/lua_cdb.c index 0b0821dd0..2ede3c24c 100644 --- a/src/lua/lua_cdb.c +++ b/src/lua/lua_cdb.c @@ -34,7 +34,7 @@ LUA_FUNCTION_DEF (cdb, destroy); static const struct luaL_reg cdblib_m[] = { LUA_INTERFACE_DEF (cdb, lookup), LUA_INTERFACE_DEF (cdb, get_name), - {"__tostring", lua_class_tostring}, + {"__tostring", rspamd_lua_class_tostring}, {"__gc", lua_cdb_destroy}, {NULL, NULL} }; @@ -80,7 +80,7 @@ lua_cdb_create (lua_State *L) } else { pcdb = lua_newuserdata (L, sizeof (struct cdb *)); - lua_setclass (L, "rspamd{cdb}", -1); + rspamd_lua_setclass (L, "rspamd{cdb}", -1); *pcdb = cdb; } } |