]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: args: add name for ARGT_VAR
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Sep 2015 18:57:12 +0000 (20:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 21 Sep 2015 18:57:12 +0000 (20:57 +0200)
Commit 4834bc7 ("MEDIUM: vars: adds support of variables") introduced
ARGT_VAR but forgot to put it in the names array. No backport needed.

include/types/arg.h
src/arg.c

index 28cdfb332e5a6521569592575c2a0da03deb0a5e..fd35354acb85f8a11e9a004690c489028b77d25f 100644 (file)
@@ -60,6 +60,7 @@ enum {
        ARGT_MAP,      /* a pointer to a map descriptor */
        ARGT_REG,      /* a pointer to a regex */
        ARGT_VAR,      /* contains a variable description. */
+       /* please update arg_type_names[] in args.c if you add entries here */
 };
 
 /* context where arguments are used, in order to help error reporting */
index 93389e18816cc880966b0862efecef6bdb5196d6..7248c54b0235f89a53a318d8c93afc2dbaac3b89 100644 (file)
--- a/src/arg.c
+++ b/src/arg.c
@@ -34,6 +34,7 @@ const char *arg_type_names[ARGT_NBTYPES] = {
        [ARGT_USR]  = "user list",
        [ARGT_MAP]  = "map",
        [ARGT_REG]  = "regex",
+       [ARGT_VAR]  = "variable",
        /* Unassigned types must never happen. Better crash during parsing if they do. */
 };