httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1200975 - /httpd/httpd/trunk/modules/lua/mod_lua.c
Date Fri, 11 Nov 2011 17:27:07 GMT
Author: covener
Date: Fri Nov 11 17:27:06 2011
New Revision: 1200975

URL: http://svn.apache.org/viewvc?rev=1200975&view=rev
Log:
C99 and unused variable warnings

Modified:
    httpd/httpd/trunk/modules/lua/mod_lua.c

Modified: httpd/httpd/trunk/modules/lua/mod_lua.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/mod_lua.c?rev=1200975&r1=1200974&r2=1200975&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/mod_lua.c (original)
+++ httpd/httpd/trunk/modules/lua/mod_lua.c Fri Nov 11 17:27:06 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);



Mime
View raw message