From 5a1c7280a94a352009f4dbf86581efcbfc6fc296 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 9 Mar 2021 16:55:18 +0100 Subject: [PATCH] CLEANUP: config: also address the cfg_keyword API change in the compression code The tests were made on slz and the zlib parsers for memlevel and windowsize managed to escape the change made by commit 018251667 ("CLEANUP: config: make the cfg_keyword parsers take a const for the defproxy"). This is now fixed. --- src/compression.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compression.c b/src/compression.c index 785aa48..26dcd42 100644 --- a/src/compression.c +++ b/src/compression.c @@ -655,7 +655,7 @@ static int deflate_end(struct comp_ctx **comp_ctx) /* config parser for global "tune.zlibmemlevel" */ static int zlib_parse_global_memlevel(char **args, int section_type, struct proxy *curpx, - struct proxy *defpx, const char *file, int line, + const struct proxy *defpx, const char *file, int line, char **err) { if (too_many_args(1, args, err, NULL)) @@ -677,7 +677,7 @@ static int zlib_parse_global_memlevel(char **args, int section_type, struct prox /* config parser for global "tune.zlibwindowsize" */ static int zlib_parse_global_windowsize(char **args, int section_type, struct proxy *curpx, - struct proxy *defpx, const char *file, int line, + const struct proxy *defpx, const char *file, int line, char **err) { if (too_many_args(1, args, err, NULL)) -- 1.7.10.4