]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cli: add a general purpose pointer in the CLI struct
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 27 Mar 2020 16:21:11 +0000 (17:21 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 31 Mar 2020 10:32:17 +0000 (12:32 +0200)
This patch adds a p2 generic pointer which is inialized to zero before
calling the parser.

include/types/applet.h

index 76a598d21e3b381595d3e180f2cced16f762b7cd..0f10e26df499c80a9662a829db0d6f8d866e815b 100644 (file)
@@ -106,7 +106,7 @@ struct appctx {
                        int severity;           /* severity of the message to be returned according to (syslog) rfc5424 */
                        char *err;              /* pointer to a 'must free' message to be returned in CLI_ST_PRINT_FREE state */
                        struct list l0;         /* General purpose list element, pointers, offsets and integers for... */
-                       void *p0, *p1;          /* ...registered commands, initialized to 0 by the CLI before first... */
+                       void *p0, *p1, *p2;     /* ...registered commands, initialized to 0 by the CLI before first... */
                        size_t o0, o1;          /* ...invocation of the keyword parser, except for the list element which... */
                        int i0, i1;             /* ...is initialized with LIST_INIT(). */
                } cli;                          /* context used by the CLI */