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

include/types/server.h

index bca7c43f11081b6e463f63af6c1f40e7ece0a1a4..70e621a8de8ae84e88da3b03bf0d64539f476e21 100644 (file)
@@ -206,7 +206,7 @@ struct server {
        char *rdr_pfx;                          /* the redirection prefix */
 
        struct proxy *proxy;                    /* the proxy this server belongs to */
-       struct mux_proto_list *mux_proto;       /* the mux to use for all outgoing connections (specified by the "proto" keyword) */
+       const struct mux_proto_list *mux_proto;       /* the mux to use for all outgoing connections (specified by the "proto" keyword) */
        int served;                             /* # of active sessions currently being served (ie not pending) */
        int cur_sess;                           /* number of currently active sessions (including syn_sent) */
        unsigned maxconn, minconn;              /* max # of active sessions (0 = unlimited), min# for dynamic limit. */