You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2015/10/25 10:30:51 UTC
svn commit: r1710419 - /httpd/httpd/trunk/server/protocol.c
Author: icing
Date: Sun Oct 25 09:30:51 2015
New Revision: 1710419
URL: http://svn.apache.org/viewvc?rev=1710419&view=rev
Log:
fixing compilation issue for older platform
Modified:
httpd/httpd/trunk/server/protocol.c
Modified: httpd/httpd/trunk/server/protocol.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/protocol.c?rev=1710419&r1=1710418&r2=1710419&view=diff
==============================================================================
--- httpd/httpd/trunk/server/protocol.c (original)
+++ httpd/httpd/trunk/server/protocol.c Sun Oct 25 09:30:51 2015
@@ -2000,11 +2000,13 @@ AP_DECLARE(apr_status_t) ap_get_protocol
existing = ap_get_protocol(c);
if (conf->protocols->nelts > 1
|| !ap_array_str_contains(conf->protocols, existing)) {
+ int i;
+
/* possibly more than one choice or one, but not the
* existing. (TODO: maybe 426 and Upgrade then?) */
upgrades = apr_array_make(pool, conf->protocols->nelts + 1,
sizeof(char *));
- for (int i = 0; i < conf->protocols->nelts; ++i) {
+ for (i = 0; i < conf->protocols->nelts; i++) {
const char *p = APR_ARRAY_IDX(conf->protocols, i, char *);
if (strcmp(existing, p)) {
/* not the one we have and possible, add in this order */