From: Christopher Faulet Date: Wed, 8 Aug 2018 08:21:56 +0000 (+0200) Subject: MINOR: mux: Change get_mux_proto to get an ist as parameter X-Git-Tag: v1.9-dev2~179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e15c6c48ef1e60e6f733e02a22d5b15f1bbdf442;p=thirdparty%2Fhaproxy.git MINOR: mux: Change get_mux_proto to get an ist as parameter It simplifies the API and ease comparisons with the multiplexers token (which is an ist too). --- diff --git a/include/proto/connection.h b/include/proto/connection.h index 72f297d4cd..27edff947a 100644 --- a/include/proto/connection.h +++ b/include/proto/connection.h @@ -962,10 +962,9 @@ static inline void unregister_mux_proto(struct mux_proto_list *list) LIST_INIT(&list->list); } -static inline struct mux_proto_list *get_mux_proto(char *str, int len) +static inline struct mux_proto_list *get_mux_proto(const struct ist proto) { struct mux_proto_list *item; - struct ist proto = ist2(str, len); list_for_each_entry(item, &mux_proto_list.list, list) { if (isteq(proto, item->token))