From 3b1c9a39fd8fd23e0a5353770aeac19d548411ab Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Mon, 22 Mar 2021 11:21:36 +0100 Subject: [PATCH] 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 --- src/pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pool.c b/src/pool.c index 03cb2ec5d..2c9c9ff8b 100644 --- a/src/pool.c +++ b/src/pool.c @@ -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;