]> git.kaiwu.me - haproxy.git/commitdiff
CLEANUP: cfgparse-global: ask not to add new keywords in common_kw_list[]
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Oct 2026 15:29:21 +0000 (17:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:31:07 +0000 (09:31 +0200)
Better discourage new keywords from being added again to the remaining
list, which currently still contains a few section names that are not
discovered otherwise. We just add a comment.

src/cfgparse-global.c

index 1efc372ac8bc501de080231e5374588c445bfb89..af9c6155e660bfa05e01adfcd0632cc745784aff 100644 (file)
@@ -34,6 +34,7 @@ int cluster_secret_isset;
 
 /* some keywords that are still being parsed using strcmp() and are not
  * registered anywhere. They are used as suggestions for mistyped words.
+ * DO NOT ADD ANY NEW KEYWORDS HERE, THAT MUST NO LONGER BE NECESSARY!
  */
 static const char *common_kw_list[] = {
        "global",