From 638f6ad0339b66434a0b1ecf5c7c29da163e1ec9 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Fri, 27 Mar 2020 17:21:11 +0100 Subject: [PATCH] MINOR: cli: add a general purpose pointer in the CLI struct This patch adds a p2 generic pointer which is inialized to zero before calling the parser. --- include/types/applet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/types/applet.h b/include/types/applet.h index 76a598d..0f10e26 100644 --- a/include/types/applet.h +++ b/include/types/applet.h @@ -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 */ -- 1.7.10.4