From: Willy Tarreau Date: Sun, 2 Dec 2018 12:08:34 +0000 (+0100) Subject: MINOR: server: the mux_proto entry in the server is const X-Git-Tag: v1.9-dev9~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fbea1d8d097ac937f98f03e94199574a81bcd03;p=thirdparty%2Fhaproxy.git MINOR: server: the mux_proto entry in the server is const 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. --- diff --git a/include/types/server.h b/include/types/server.h index bca7c43f11..70e621a8de 100644 --- a/include/types/server.h +++ b/include/types/server.h @@ -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. */