CLEANUP: Replace for loop with only a condition by while

Refactoring performed with the following Coccinelle patch:

    @@
    expression e;
    statement S;
    @@

    - for (;e;)
    + while (e)
      S
This commit is contained in:
Tim Duesterhus 2021-03-04 23:50:13 +01:00 committed by Willy Tarreau
parent dcf753aabe
commit 1568355afd

View File

@ -535,7 +535,7 @@ int h2_make_htx_request(struct http_hdr *list, struct htx *htx, unsigned int *ms
* insert "; " before the new value.
*/
fs += tl; // first one is already counted
for (; (ck = list[ck].n.len) >= 0 ; ) {
while ((ck = list[ck].n.len) >= 0) {
vl = list[ck].v.len;
tl += vl + 2;
if (tl > fs)