Skip to content

Commit

Permalink
fix stylistic issues
Browse files Browse the repository at this point in the history
related to:
#5 - Load balancing
  • Loading branch information
vdmit11 committed Oct 15, 2014
1 parent 7b5adee commit 8f20f00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion tempesta_fw/http_match.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ map_op_to_str_eq_flags(tfw_http_match_op_t op)
return flags_tbl[op];
}


static bool
match_method(const TfwHttpReq *req, const TfwHttpMatchRule *rule)
{
Expand Down
10 changes: 5 additions & 5 deletions tempesta_fw/sched/tfw_sched_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ rebuild_match_list(void)
* --------------------------------------------------------------------------
*/

TfwServer *
static TfwServer *
tfw_sched_http_get_srv(TfwMsg *msg)
{
TfwHttpMatchList *mlst;
Expand All @@ -414,7 +414,7 @@ tfw_sched_http_get_srv(TfwMsg *msg)
}


int
static int
tfw_sched_http_add_srv(TfwServer *srv)
{
int ret = 0;
Expand All @@ -433,7 +433,7 @@ tfw_sched_http_add_srv(TfwServer *srv)
return ret;
}

int
static int
tfw_sched_http_del_srv(TfwServer *srv)
{
int ret = 0;
Expand Down Expand Up @@ -859,7 +859,7 @@ static ctl_table sched_http_ctl_tbl[] = {
* --------------------------------------------------------------------------
*/

static TfwScheduler tfw_sched_rr_mod = {
static TfwScheduler tfw_sched_http_mod = {
.name = "http",
.get_srv = tfw_sched_http_get_srv,
.add_srv = tfw_sched_http_add_srv,
Expand Down Expand Up @@ -890,7 +890,7 @@ tfw_sched_http_init(void)
goto err_sysctl_register;
}

ret = tfw_sched_register(&tfw_sched_rr_mod);
ret = tfw_sched_register(&tfw_sched_http_mod);
if (ret) {
LOG("Can't register the scheduler module\n");
ret = -1;
Expand Down

0 comments on commit 8f20f00

Please sign in to comment.