Commit 864fa969 authored by Christophe Jaillet's avatar Christophe Jaillet
Browse files

Function used as 'apr_reslist_destructor' when calling 'apr_reslist_create()'...

Function used as 'apr_reslist_destructor' when calling 'apr_reslist_create()' should have the following prototype:

apr_status_t (*apr_reslist_destructor)(void *resource, void *params, apr_pool_t *pool);

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1834226 13f79535-47bb-0310-9956-ffa450edef68
parent 3913984b
Loading
Loading
Loading
Loading
+3 −2
Changes for modules/lua/lua_vmprep.c: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -244,7 +244,7 @@ static apr_status_t cleanup_lua(void *l)
    return APR_SUCCESS;
}

static apr_status_t server_cleanup_lua(void *resource)
static apr_status_t server_cleanup_lua(void *resource, void *params, apr_pool_t *pool)
{
    ap_lua_server_spec* spec = (ap_lua_server_spec*) resource;
    AP_DEBUG_ASSERT(spec != NULL);
@@ -311,7 +311,8 @@ static void munge_path(lua_State *L,
}

#ifdef AP_ENABLE_LUAJIT
static int loadjitmodule(lua_State *L, apr_pool_t *lifecycle_pool) {
static int loadjitmodule(lua_State *L, apr_pool_t *lifecycle_pool)
{
    lua_getglobal(L, "require");
    lua_pushliteral(L, "jit.");
    lua_pushvalue(L, -3);