You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2011/11/11 18:37:27 UTC

svn commit: r1200982 - /httpd/httpd/branches/2.4.x/modules/lua/mod_lua.c

Author: jim
Date: Fri Nov 11 17:37:26 2011
New Revision: 1200982

URL: http://svn.apache.org/viewvc?rev=1200982&view=rev
Log:
Merge r1200975 from trunk:

C99 and unused variable warnings

Submitted by: covener
Reviewed/backported by: jim

Modified:
    httpd/httpd/branches/2.4.x/modules/lua/mod_lua.c

Modified: httpd/httpd/branches/2.4.x/modules/lua/mod_lua.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/modules/lua/mod_lua.c?rev=1200982&r1=1200981&r2=1200982&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/modules/lua/mod_lua.c (original)
+++ httpd/httpd/branches/2.4.x/modules/lua/mod_lua.c Fri Nov 11 17:37:26 2011
@@ -85,6 +85,7 @@ static int lua_open_hook(lua_State *L, a
 static int lua_handler(request_rec *r)
 {
     ap_lua_dir_cfg *dcfg;
+    apr_pool_t *pool;
     if (strcmp(r->handler, "lua-script")) {
         return DECLINED;
     }
@@ -97,9 +98,6 @@ static int lua_handler(request_rec *r)
         lua_State *L;
         const ap_lua_dir_cfg *cfg = ap_get_module_config(r->per_dir_config,
                                                          &lua_module);
-        ap_lua_request_cfg *rcfg = ap_get_module_config(r->request_config,
-                                                        &lua_module);
-
         ap_lua_vm_spec *spec = NULL;
 
         spec = apr_pcalloc(r->pool, sizeof(ap_lua_vm_spec));
@@ -117,7 +115,6 @@ static int lua_handler(request_rec *r)
                       spec->file,
                       "handle");
 
-        apr_pool_t *pool;
         switch (dcfg->vm_scope) {
         case AP_LUA_SCOPE_ONCE:
           apr_pool_create(&pool, r->pool);