]> git.kaiwu.me - haproxy.git/commit
MINOR: cfgparse: adapt warnif_cond_conflicts() error output
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 8 Jan 2026 15:55:38 +0000 (16:55 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 15 Jan 2026 08:08:18 +0000 (09:08 +0100)
commit16f035d5556133d3698b8e4451c90edce79c1721
tree1cc0db1d7f922a8bd175b6cdc0a36857e3401b78
parent82907d5621bcea189dfb285540c04f0078bd8951
MINOR: cfgparse: adapt warnif_cond_conflicts() error output

Utility function warnif_cond_conflicts() is used when parsing an ACL.
Previously, the function directly calls ha_warning() to report an error.
Change the function so that it now takes the error message as argument.
Caller can then output it as wanted.

This change is necessary to use the function when parsing a keyword
registered as cfg_kw_list. The next patch will reuse it.
include/haproxy/cfgparse.h
src/cfgparse-listen.c
src/cfgparse.c