httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ic...@apache.org
Subject svn commit: r1697392 - /httpd/test/framework/trunk/c-modules/test_session/mod_test_session.c
Date Mon, 24 Aug 2015 13:43:12 GMT
Author: icing
Date: Mon Aug 24 13:43:11 2015
New Revision: 1697392

URL: http://svn.apache.org/r1697392
Log:
fixing non C90 compiler errors when apxs is build in maintainer-mode

Modified:
    httpd/test/framework/trunk/c-modules/test_session/mod_test_session.c

Modified: httpd/test/framework/trunk/c-modules/test_session/mod_test_session.c
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/c-modules/test_session/mod_test_session.c?rev=1697392&r1=1697391&r2=1697392&view=diff
==============================================================================
--- httpd/test/framework/trunk/c-modules/test_session/mod_test_session.c (original)
+++ httpd/test/framework/trunk/c-modules/test_session/mod_test_session.c Mon Aug 24 13:43:11
2015
@@ -89,12 +89,13 @@ static void test_session_init(apr_pool_t
 
 static apr_status_t test_session_load(request_rec * r, session_rec ** z)
 {
+    session_rec *zz;
     test_session_dcfg_t *dconf = ap_get_module_config(r->per_dir_config,
                                                       &test_session_module);
     if (!dconf || !dconf->session)
         return DECLINED;
 
-    session_rec *zz = (session_rec *)apr_table_get(r->notes, TEST_SESSION_NOTE);
+    zz = (session_rec *)apr_table_get(r->notes, TEST_SESSION_NOTE);
 
     if (!zz) {
         /* Create the session using the query string as the data. */
@@ -207,15 +208,18 @@ static int test_session_handler(request_
 
     /* Additional commands to test the session API via POST. */
     if (r->method_number == M_POST) {
+        char *fieldName = NULL;
+        char *fieldValue = NULL;
+        apr_array_header_t *pairs = NULL;
+        apr_status_t result;
+        TestSessionAction action;
+
         if (!ap_session_get_fn || !ap_session_set_fn ||
             !ap_session_load_fn || !ap_session_save_fn)
             return HTTP_INTERNAL_SERVER_ERROR;
 
-        char *fieldName = NULL;
-        char *fieldValue = NULL;
-        apr_array_header_t *pairs = NULL;
-        TestSessionAction action = TEST_SESSION_ACTION_NONE;
-        apr_status_t result = ap_parse_form_data(r, NULL, &pairs, 3, 1024);
+        action = TEST_SESSION_ACTION_NONE;
+        result = ap_parse_form_data(r, NULL, &pairs, 3, 1024);
 
         if (result != OK)
             return result;



Mime
View raw message