mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
CLEANUP: mark defproxy as const on parse tune.fail-alloc
This fixes a gcc warning about a missing const on defproxy for mem_parse_global_fail_alloc. This is needed since the commit : 018251667e4c95478ce0026f4d700e0420f8ce24 CLEANUP: config: make the cfg_keyword parsers take a const for the defproxy
This commit is contained in:
parent
19d14710e9
commit
3b1c9a39fd
@ -695,8 +695,8 @@ int mem_should_fail(const struct pool_head *pool)
|
||||
|
||||
/* config parser for global "tune.fail-alloc" */
|
||||
static int mem_parse_global_fail_alloc(char **args, int section_type, struct proxy *curpx,
|
||||
struct proxy *defpx, const char *file, int line,
|
||||
char **err)
|
||||
const struct proxy *defpx, const char *file, int line,
|
||||
char **err)
|
||||
{
|
||||
if (too_many_args(1, args, err, NULL))
|
||||
return -1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user