From af18f8e93d583300ddc4d2e048cf590a7a827247 Mon Sep 17 00:00:00 2001 From: Aleksey Baulin Date: Mon, 17 Oct 2016 13:46:45 +0300 Subject: [PATCH] Few cosmetic changes for style. (#419) --- tempesta_fw/http.c | 2 +- tempesta_fw/http_match.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tempesta_fw/http.c b/tempesta_fw/http.c index be0ef94e6..433a5c9ae 100644 --- a/tempesta_fw/http.c +++ b/tempesta_fw/http.c @@ -1093,7 +1093,7 @@ tfw_http_resp_fwd(TfwHttpReq *req, TfwHttpResp *resp) if (req->resp == NULL) break; list_move_tail(&req->msg.seq_list, &out_queue); - } while(!list_empty(seq_queue)); + } while (!list_empty(seq_queue)); spin_unlock(&cli_conn->msg_qlock); /* Forward responses to the client. */ diff --git a/tempesta_fw/http_match.c b/tempesta_fw/http_match.c index 0131c6c76..b917afadc 100644 --- a/tempesta_fw/http_match.c +++ b/tempesta_fw/http_match.c @@ -198,9 +198,8 @@ match_hdr(const TfwHttpReq *req, const TfwHttpMatchRule *rule) } #define _MOVE_TO_COND(p, end, cond) \ - while((p) < (end) && !(cond)) { \ - (p)++; \ - } + while ((p) < (end) && !(cond)) \ + (p)++; /* It would be hard to apply some header-specific rules here, so ignore * case for all headers according to the robustness principle.