You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@apache.org on 2005/12/19 15:50:58 UTC
svn commit: r357699 - /httpd/httpd/trunk/modules/proxy/ajp_header.c
Author: martin
Date: Mon Dec 19 06:50:56 2005
New Revision: 357699
URL: http://svn.apache.org/viewcvs?rev=357699&view=rev
Log:
In Apache-2.x, the function is called apr_pstrdup().
The 'tmp' variable is not really necessary.
Modified:
httpd/httpd/trunk/modules/proxy/ajp_header.c
Modified: httpd/httpd/trunk/modules/proxy/ajp_header.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/proxy/ajp_header.c?rev=357699&r1=357698&r2=357699&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/ajp_header.c (original)
+++ httpd/httpd/trunk/modules/proxy/ajp_header.c Mon Dec 19 06:50:56 2005
@@ -461,9 +461,6 @@
const char *ptr;
apr_uint16_t num_headers;
int i;
-#if defined(AS400) || defined(_OSD_POSIX)
- char *tmp;
-#endif
rc = ajp_msg_get_uint16(msg, &status);
@@ -476,10 +473,9 @@
rc = ajp_msg_get_string(msg, &ptr);
if (rc == APR_SUCCESS) {
-#if defined(AS400) || defined(_OSD_POSIX)
- tmp = ap_pstrdup(r->pool, ptr);
- ap_xlate_proto_from_ascii(tmp, strlen(tmp));
- ptr = tmp;
+#if defined(AS400) || defined(_OSD_POSIX) /* EBCDIC platforms */
+ ptr = apr_pstrdup(r->pool, ptr);
+ ap_xlate_proto_from_ascii(ptr, strlen(ptr));
#endif
r->status_line = apr_psprintf(r->pool, "%d %s", status, ptr);
} else {