]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cli: extend the CLI context with a list and two offsets
authorWilly Tarreau <w@1wt.eu>
Fri, 30 Aug 2019 06:05:03 +0000 (08:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Aug 2019 09:58:58 +0000 (11:58 +0200)
commit300decc8d9b04df434377735ce870dfbd73a8640
treeb96722c5ff2d52a9c662d3977ce3d99e24cf6a00
parent13696ffba238e5ab0a97736ff79319f307e0b171
MINOR: cli: extend the CLI context with a list and two offsets

Some CLI parsers are currently abusing the CLI context types such as
pointers to stuff longs into them by lack of room. But the context is
80 bytes while cli is only 48, thus there's some room left. This patch
adds a list element and two size_t usable as various offsets. The list
element is initialized.
include/types/applet.h
src/cli.c