diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-20 08:16:49 -0700 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-20 08:16:49 -0700 |
commit | ad837700b86153be3587672124ee663c964f0f15 (patch) | |
tree | 7ec6e8fbe539a169d501a3d1767644b68fab2dab /src/lua/lua_session.c | |
parent | baeb17562f47dc31610c0f65079c45a7e6ad44bb (diff) | |
download | rspamd-ad837700b86153be3587672124ee663c964f0f15.tar.gz rspamd-ad837700b86153be3587672124ee663c964f0f15.zip |
Refactor memory pool naming.
Diffstat (limited to 'src/lua/lua_session.c')
-rw-r--r-- | src/lua/lua_session.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_session.c b/src/lua/lua_session.c index 9d0387edc..193488cef 100644 --- a/src/lua/lua_session.c +++ b/src/lua/lua_session.c @@ -143,7 +143,7 @@ lua_session_create (lua_State *L) { struct rspamd_async_session *session, **psession; struct lua_session_udata *cbdata; - memory_pool_t *mempool; + rspamd_mempool_t *mempool; @@ -166,7 +166,7 @@ lua_session_create (lua_State *L) return 1; } - cbdata = memory_pool_alloc0 (mempool, sizeof (struct lua_session_udata)); + cbdata = rspamd_mempool_alloc0 (mempool, sizeof (struct lua_session_udata)); cbdata->L = L; lua_pushvalue (L, 2); cbdata->cbref_fin = luaL_ref (L, LUA_REGISTRYINDEX); @@ -235,7 +235,7 @@ lua_session_register_async_event (lua_State *L) if (session) { if (lua_isfunction (L, 1)) { - cbdata = memory_pool_alloc (session->pool, sizeof (struct lua_event_udata)); + cbdata = rspamd_mempool_alloc (session->pool, sizeof (struct lua_event_udata)); cbdata->L = L; lua_pushvalue (L, 1); cbdata->cbref = luaL_ref (L, LUA_REGISTRYINDEX); |