mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-20 12:46:56 +00:00
BUG/MINOR: extcheck: proxy_parse_extcheck() must take a const for the defproxy
The default proxy was passed as a variable, which in addition to being a PITA to deal with in the config parser, doesn't feel safe to use when it ought to be const. This will only affect new code so no backport is needed.
This commit is contained in:
parent
818ec78af8
commit
220fd70694
@ -35,7 +35,7 @@ int proxy_parse_extcheck(char **args, int section, struct proxy *curpx,
|
||||
struct proxy *defpx, const char *file, int line,
|
||||
char **errmsg);
|
||||
|
||||
int proxy_parse_external_check_opt(char **args, int cur_arg, struct proxy *curpx, struct proxy *defpx,
|
||||
int proxy_parse_external_check_opt(char **args, int cur_arg, struct proxy *curpx, const struct proxy *defpx,
|
||||
const char *file, int line);
|
||||
|
||||
|
||||
|
@ -648,7 +648,7 @@ error:
|
||||
return -1;
|
||||
}
|
||||
|
||||
int proxy_parse_external_check_opt(char **args, int cur_arg, struct proxy *curpx, struct proxy *defpx,
|
||||
int proxy_parse_external_check_opt(char **args, int cur_arg, struct proxy *curpx, const struct proxy *defpx,
|
||||
const char *file, int line)
|
||||
{
|
||||
int err_code = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user