projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c767eeb
)
CLEANUP: vars: name the temporary proxy "CFG" instead of "CLI" for global vars
author
Willy Tarreau
<w@1wt.eu>
Fri, 3 Sep 2021 06:19:43 +0000
(08:19 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Fri, 3 Sep 2021 09:01:48 +0000
(11:01 +0200)
We're using a dummy temporary proxy when creating global variables in
the configuration file, it was copied from the CLI's code and was
mistakenly called "CLI", better name it "CFG". It should not appear
anywhere except maybe when debugging cores.
src/vars.c
patch
|
blob
|
history
diff --git
a/src/vars.c
b/src/vars.c
index
59f802a
..
d4f4119
100644
(file)
--- a/
src/vars.c
+++ b/
src/vars.c
@@
-902,7
+902,7
@@
static int vars_parse_global_set_var(char **args, int section_type, struct proxy
char **err)
{
struct proxy px = {
- .id = "CLI",
+ .id = "CFG",
.conf.args.file = file,
.conf.args.line = line,
};