]> granicus.if.org Git - apache/commitdiff
Function used as 'apr_reslist_destructor' when calling 'apr_reslist_create()' should...
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 23 Jun 2018 21:52:09 +0000 (21:52 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 23 Jun 2018 21:52:09 +0000 (21:52 +0000)
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

modules/lua/lua_vmprep.c

index e6d68cf000a7a9955c2c5ee65e2588dfeb5ec162..001897a11c86690ae0b2ff16f013e57a871b02da 100644 (file)
@@ -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);