]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: listener: the mux_proto entry in the bind_conf is const
authorWilly Tarreau <w@1wt.eu>
Sun, 2 Dec 2018 12:03:57 +0000 (13:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Dec 2018 12:12:15 +0000 (13:12 +0100)
We'll have to update this one soon, let's avoid any cast and mark it
const as it really is.

include/types/listener.h

index eac2037f43c8639f5e68c6aa1222afe8416c7d43..05b363c2bc53d1cbcc16520c998fe79673b343b1 100644 (file)
@@ -161,7 +161,7 @@ struct bind_conf {
        EVP_PKEY *ca_sign_pkey;    /* CA private key referenced by ca_key */
 #endif
        struct proxy *frontend;    /* the frontend all these listeners belong to, or NULL */
-       struct mux_proto_list *mux_proto; /* the mux to use for all incoming connections (specified by the "proto" keyword) */
+       const struct mux_proto_list *mux_proto; /* the mux to use for all incoming connections (specified by the "proto" keyword) */
        struct xprt_ops *xprt;     /* transport-layer operations for all listeners */
        int is_ssl;                /* SSL is required for these listeners */
        int generate_certs;        /* 1 if generate-certificates option is set, else 0 */