httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r645392 - /httpd/httpd/trunk/server/util_cookies.c
Date Mon, 07 Apr 2008 06:14:31 GMT
Author: martin
Date: Sun Apr  6 23:14:31 2008
New Revision: 645392

URL: http://svn.apache.org/viewvc?rev=645392&view=rev
Log:
Tweaking code to compile on pre-C99 compilers

Modified:
    httpd/httpd/trunk/server/util_cookies.c

Modified: httpd/httpd/trunk/server/util_cookies.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_cookies.c?rev=645392&r1=645391&r2=645392&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_cookies.c (original)
+++ httpd/httpd/trunk/server/util_cookies.c Sun Apr  6 23:14:31 2008
@@ -38,6 +38,7 @@
 {
 
     char *buffer;
+    char *rfc2109;
 
     /* handle expiry */
     buffer = "";
@@ -46,10 +47,10 @@
     }
 
     /* create RFC2109 compliant cookie */
-    char *rfc2109 = apr_pstrcat(r->pool, name, "=", val, ";",
-                                buffer,
-                                attrs && strlen(attrs) > 0 ?
-                                attrs : DEFAULT_ATTRS, NULL);
+    rfc2109 = apr_pstrcat(r->pool, name, "=", val, ";",
+                          buffer,
+                          attrs && strlen(attrs) > 0 ?
+                          attrs : DEFAULT_ATTRS, NULL);
     ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, LOG_PREFIX
                   "user '%s' set cookie: '%s'", r->user, rfc2109);
     apr_table_addn(r->headers_out, SET_COOKIE, rfc2109);
@@ -73,6 +74,7 @@
 {
 
     char *buffer;
+    char *rfc2965;
 
     /* handle expiry */
     buffer = "";
@@ -81,10 +83,10 @@
     }
 
     /* create RFC2965 compliant cookie */
-    char *rfc2965 = apr_pstrcat(r->pool, name2, "=", val, ";",
-                                buffer,
-                                attrs2 && strlen(attrs2) > 0 ?
-                                attrs2 : DEFAULT_ATTRS, NULL);
+    rfc2965 = apr_pstrcat(r->pool, name2, "=", val, ";",
+                          buffer,
+                          attrs2 && strlen(attrs2) > 0 ?
+                          attrs2 : DEFAULT_ATTRS, NULL);
     ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, LOG_PREFIX
                   "user '%s' set cookie2: '%s'", r->user, rfc2965);
     apr_table_addn(r->headers_out, SET_COOKIE2, rfc2965);



Mime
View raw message