From: Willy Tarreau Date: Mon, 21 Sep 2015 18:57:12 +0000 (+0200) Subject: BUG/MINOR: args: add name for ARGT_VAR X-Git-Tag: v1.6-dev6~103 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7ead613888eac6d6422c85f7c9599be2d73cc55;p=thirdparty%2Fhaproxy.git BUG/MINOR: args: add name for ARGT_VAR Commit 4834bc7 ("MEDIUM: vars: adds support of variables") introduced ARGT_VAR but forgot to put it in the names array. No backport needed. --- diff --git a/include/types/arg.h b/include/types/arg.h index 28cdfb332e..fd35354acb 100644 --- a/include/types/arg.h +++ b/include/types/arg.h @@ -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 */ diff --git a/src/arg.c b/src/arg.c index 93389e1881..7248c54b02 100644 --- 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. */ };