Skip to content

Commit

Permalink
Few cosmetic changes for style. (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
keshonok committed Feb 13, 2017
1 parent 5cda301 commit af18f8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tempesta_fw/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
5 changes: 2 additions & 3 deletions tempesta_fw/http_match.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit af18f8e

Please sign in to comment.