mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-25 06:53:03 +00:00
CLEANUP: Reapply strcmp.cocci
This reapplies strcmp.cocci across the whole src/ tree.
This commit is contained in:
parent
a029d781e2
commit
a6fc616c1a
@ -26,9 +26,9 @@ static int bind_parse_quic_cc_algo(char **args, int cur_arg, struct proxy *px,
|
||||
return ERR_ALERT | ERR_FATAL;
|
||||
}
|
||||
|
||||
if (!strcmp(args[cur_arg + 1], "newreno"))
|
||||
if (strcmp(args[cur_arg + 1], "newreno") == 0)
|
||||
cc_algo = &quic_cc_algo_nr;
|
||||
else if (!strcmp(args[cur_arg + 1], "cubic"))
|
||||
else if (strcmp(args[cur_arg + 1], "cubic") == 0)
|
||||
cc_algo = &quic_cc_algo_cubic;
|
||||
else {
|
||||
memprintf(err, "'%s' : unknown control congestion algorithm", args[cur_arg]);
|
||||
|
@ -419,7 +419,7 @@ int check_bwlim_action(struct act_rule *rule, struct proxy *px, char **err)
|
||||
conf = NULL;
|
||||
if (fconf->id == bwlim_flt_id) {
|
||||
conf = fconf->conf;
|
||||
if (!strcmp(rule->arg.act.p[0], conf->name))
|
||||
if (strcmp(rule->arg.act.p[0], conf->name) == 0)
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -639,7 +639,7 @@ static int parse_bwlim_flt(char **args, int *cur_arg, struct proxy *px, struct f
|
||||
if (fc->id == bwlim_flt_id) {
|
||||
struct bwlim_config *c = fc->conf;
|
||||
|
||||
if (!strcmp(conf->name, c->name)) {
|
||||
if (strcmp(conf->name, c->name) == 0) {
|
||||
memprintf(err, "bwlim filter '%s' already declared for proxy '%s'\n",
|
||||
conf->name, px->id);
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user