From b071e8b2f1bd19c9367fe1b61bbec8aac009cd7f Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 21 Apr 2026 07:52:57 +0200 Subject: [PATCH] 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. --- include/haproxy/applet-t.h | 1 - 1 file changed, 1 deletion(-) 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 */ };