httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1137413 - in /httpd/httpd/trunk/modules: generators/mod_status.c proxy/mod_proxy.c session/mod_session.c
Date Sun, 19 Jun 2011 18:50:12 GMT
Author: sf
Date: Sun Jun 19 18:50:12 2011
New Revision: 1137413

URL: http://svn.apache.org/viewvc?rev=1137413&view=rev
Log:
Code cleanup: replace apr_table_set with non-copying apr_table_setn
in a few places

Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr>

Modified:
    httpd/httpd/trunk/modules/generators/mod_status.c
    httpd/httpd/trunk/modules/proxy/mod_proxy.c
    httpd/httpd/trunk/modules/session/mod_session.c

Modified: httpd/httpd/trunk/modules/generators/mod_status.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/generators/mod_status.c?rev=1137413&r1=1137412&r2=1137413&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/generators/mod_status.c (original)
+++ httpd/httpd/trunk/modules/generators/mod_status.c Sun Jun 19 18:50:12 2011
@@ -273,9 +273,9 @@ static int status_handler(request_rec *r
                     if (*(loc + len ) == '=') {
                         t = atol(loc + len + 1);
                     }
-                    apr_table_set(r->headers_out,
-                                  status_options[i].hdr_out_str,
-                                  apr_ltoa(r->pool, t < 1 ? 10 : t));
+                    apr_table_setn(r->headers_out,
+                                   status_options[i].hdr_out_str,
+                                   apr_ltoa(r->pool, t < 1 ? 10 : t));
                     break;
                 }
                 case STAT_OPT_NOTABLE:

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy.c?rev=1137413&r1=1137412&r2=1137413&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy.c Sun Jun 19 18:50:12 2011
@@ -809,7 +809,7 @@ static int proxy_needsdomain(request_rec
                            &r->parsed_uri,
                            APR_URI_UNP_REVEALPASSWORD);
 
-    apr_table_set(r->headers_out, "Location", nuri);
+    apr_table_setn(r->headers_out, "Location", nuri);
     ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
                   "Domain missing: %s sent to %s%s%s", r->uri,
                   apr_uri_unparse(r->pool, &r->parsed_uri,

Modified: httpd/httpd/trunk/modules/session/mod_session.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/session/mod_session.c?rev=1137413&r1=1137412&r2=1137413&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/session/mod_session.c (original)
+++ httpd/httpd/trunk/modules/session/mod_session.c Sun Jun 19 18:50:12 2011
@@ -321,8 +321,8 @@ static int session_identity_encode(reque
     char *buffer = NULL;
     int length = 0;
     if (z->expiry) {
-        char *expiry = apr_psprintf(r->pool, "%" APR_INT64_T_FMT, z->expiry);
-        apr_table_set(z->entries, SESSION_EXPIRY, expiry);
+        char *expiry = apr_psprintf(z->pool, "%" APR_INT64_T_FMT, z->expiry);
+        apr_table_setn(z->entries, SESSION_EXPIRY, expiry);
     }
     apr_table_do((int (*) (void *, const char *, const char *))
                  identity_count, &length, z->entries, NULL);;



Mime
View raw message