From: Christopher Faulet Date: Tue, 21 Apr 2026 05:52:57 +0000 (+0200) Subject: CLEANUP: applet: Remove useless shadow pointer from appctx X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=b071e8b2f1bd19c9367fe1b61bbec8aac009cd7f;p=thirdparty%2Fhaproxy.git CLEANUP: applet: Remove useless shadow pointer from appctx 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. --- diff --git a/include/haproxy/applet-t.h b/include/haproxy/applet-t.h index 57178c5da..1b642edcf 100644 --- a/include/haproxy/applet-t.h +++ b/include/haproxy/applet-t.h @@ -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. 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 */ };