mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 14:51:27 +02:00
MINOR: stconn: Explicitly use an appctx to attach a stconn on it
In sc_attach_applet, an untyped pointer (void *) was used to attach a SC on an applet. There is no reason to not use the right type here. So now a pointer on an appctx is explicitly used.
This commit is contained in:
parent
0dd7ff0d67
commit
ad937372f3
@ -312,9 +312,9 @@ int sc_attach_mux(struct stconn *sc, void *sd, void *ctx)
|
|||||||
* removed. This function is called by a stream when a backend applet is
|
* removed. This function is called by a stream when a backend applet is
|
||||||
* registered.
|
* registered.
|
||||||
*/
|
*/
|
||||||
static void sc_attach_applet(struct stconn *sc, void *sd)
|
static void sc_attach_applet(struct stconn *sc, struct appctx *appctx)
|
||||||
{
|
{
|
||||||
sc->sedesc->se = sd;
|
sc->sedesc->se = appctx;
|
||||||
sc_ep_set(sc, SE_FL_T_APPLET);
|
sc_ep_set(sc, SE_FL_T_APPLET);
|
||||||
sc_ep_clr(sc, SE_FL_DETACHED);
|
sc_ep_clr(sc, SE_FL_DETACHED);
|
||||||
if (sc_strm(sc)) {
|
if (sc_strm(sc)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user