CLEANUP: Reapply strcmp.cocci

This reapplies strcmp.cocci across the whole src/ tree.
This commit is contained in:
Tim Duesterhus 2022-10-08 12:33:19 +02:00 committed by Willy Tarreau
parent a029d781e2
commit a6fc616c1a
2 changed files with 4 additions and 4 deletions

View File

@ -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]);

View File

@ -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;