mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-08 08:07:10 +02:00
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).
This commit is contained in:
parent
7c42eacbe9
commit
e15c6c48ef
@ -962,10 +962,9 @@ static inline void unregister_mux_proto(struct mux_proto_list *list)
|
|||||||
LIST_INIT(&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 mux_proto_list *item;
|
||||||
struct ist proto = ist2(str, len);
|
|
||||||
|
|
||||||
list_for_each_entry(item, &mux_proto_list.list, list) {
|
list_for_each_entry(item, &mux_proto_list.list, list) {
|
||||||
if (isteq(proto, item->token))
|
if (isteq(proto, item->token))
|
||||||
|
Loading…
Reference in New Issue
Block a user