CLEANUP: config: also address the cfg_keyword API change in the compression code
authorWilly Tarreau <w@1wt.eu>
Tue, 9 Mar 2021 15:55:18 +0000 (16:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Mar 2021 15:57:08 +0000 (16:57 +0100)
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

index 785aa48..26dcd42 100644 (file)
@@ -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))