]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: applet: Remove useless shadow pointer from appctx
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Apr 2026 05:52:57 +0000 (07:52 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Apr 2026 13:19:12 +0000 (15:19 +0200)
This pointer was used during the appctx refactoring performed in 2.6. The
ctx union was still there and this pointer was used as the "shadow" of the
svcctx pointer used by most commands. In 2.7, the union was removed, making
the shadow pointer useless. Let's remove it now.

include/haproxy/applet-t.h

index 57178c5dac4b4fd274d739bc44e62a7d6891556d..1b642edcf8fa99a04a23e2451caa20f3a11fd89a 100644 (file)
@@ -148,7 +148,6 @@ struct appctx {
        /* here we have the service's context (CLI command, applet, etc) */
        void *svcctx;                            /* pointer to a context used by the command, e.g. <storage> below */
        struct {
-               void *shadow;                    /* shadow of svcctx above, do not use! */
                char storage[APPLET_MAX_SVCCTX]; /* storage of svcctx above */
        } svc;                                   /* generic storage for most commands */
 };