]> granicus.if.org Git - apache/commitdiff
fixing compilation issue for older platform
authorStefan Eissing <icing@apache.org>
Sun, 25 Oct 2015 09:30:51 +0000 (09:30 +0000)
committerStefan Eissing <icing@apache.org>
Sun, 25 Oct 2015 09:30:51 +0000 (09:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1710419 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index fc2a20f6023a854477a74f878bf9757724872300..f8b9b103a4578182c6ab24a850ec78fbeba02adc 100644 (file)
@@ -2000,11 +2000,13 @@ AP_DECLARE(apr_status_t) ap_get_protocol_upgrades(conn_rec *c, request_rec *r,
         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 */