]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: mark defproxy as const on parse tune.fail-alloc
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 22 Mar 2021 10:21:36 +0000 (11:21 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 22 Mar 2021 10:50:31 +0000 (11:50 +0100)
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

index 03cb2ec5da7ef38a1f720c2215dba7c788950480..2c9c9ff8bca46912adb7452a9daa7c93c4c909e8 100644 (file)
@@ -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;